Closed Bug 346912 Opened 18 years ago Closed 18 years ago

print() function name collision

Categories

(Calendar :: Printing, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mattwillis, Assigned: mattwillis)

References

Details

(Keywords: regression)

Attachments

(1 file)

In bug 345490, I added printUtils.js to allow us to do Page Setup.
Doing so caused a function name collision for "print()" between print() in calendar.js and toolkit/components/printing/content/printUtils.js

We should namespace our own print function.
This patch renames our print() function to not collide with toolkit's.

I intentionally didn't move calPrint() to applicationUtil.js as we likely will want to have a way to access the print selection dialog in Lightning.


Checked for uses at:
http://landfill.mozilla.org/mxr-test/mozilla/search?string=print%28%29&find=%2Fcalendar%2F&filter=
Attachment #231644 - Flags: first-review?(jminta)
taking
Status: NEW → ASSIGNED
Comment on attachment 231644 [details] [diff] [review]
rev0 - renames our print() function to not collide

It goes in calendarUtils., not applicationUtil, but that's already included in the lightning-printing patch.
Attachment #231644 - Flags: first-review?(jminta) → first-review+
patch checked in on MOZILLA_1_8_BRANCH and trunk

-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: