Closed
Bug 303570
Opened 19 years ago
Closed 19 years ago
js Error on Sunbird shutdown (remove gICalLib, gEventSource?)
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jminta, Assigned: jminta)
References
()
Details
Attachments
(2 files, 1 obsolete file)
14.81 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
3.51 KB,
patch
|
jminta
:
first-review+
|
Details | Diff | Splinter Review |
When shutting down Sunbird, debug builds will show that there is a js error in
calendarFinish(): "gEventSource has no properties".
This is a relic from the old back-end. The line currently serves no purpose.
The only reason it hasn't caused more problems is that it's the last line of the
function. It can easily be removed, but ideally, I'd like to use this bug to
just remove all references to gICalLib and gEventSource.
http://lxr.mozilla.org/mozilla/search?string=gICalLib
http://lxr.mozilla.org/mozilla/search?string=gEventSource
The js error blocks 0.3a1, not sure if the general removal does.
Assignee | ||
Comment 1•19 years ago
|
||
This patch removes the majority of references to gEventSource and gICalLib.
See comment #0 for the lxr string searches.
References not removed:
-any references in files no longer included (ie. alertDialog.js,
calendarManager.js)
-commented out references in view code only
-calendar.js line 974. This is removed in the 'Select All' patch on bug
275695.
Updated•19 years ago
|
Attachment #191998 -
Flags: first-review?(mvl) → first-review+
Assignee | ||
Comment 2•19 years ago
|
||
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Above patch causes regression: removed calendarEvent.js, which provided
getCurrentNextOrPreviousRecurrence, which is used in unifinder.js and
mouseoverPreviews.js
Error: getCurrentNextOrPreviousRecurrence is not defined
Source File: chrome://calendar/content/mouseoverPreviews.js
Line: 257
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(patch -l -p 2 -i file.patch)
Moved to calendarUtils since used in multiple places.
Mouseover works again in unifinder search results.
Attachment #193431 -
Flags: first-review?(jminta)
Assignee | ||
Comment 5•19 years ago
|
||
Comment on attachment 193431 [details] [diff] [review]
move getCurrentNextOrPreviousRecurrence to calendarUtils.js from deleted calendarEvent.js
getCurrentNextOrPreviousRecurrence currently has the style of calendarEvent.js.
Can you see what you can do about bringing the style of the function more in
line with what's already in calendarUtils.js? Specifically:
-4 space indents
-use if (foo) instead of if( foo )
-use foo(bar) instead of foo( bar )
-put the opening { of an if on the same line
-avoid excessive double-spacing
(patch -l -p 2 -i file.patch)
As before, respaced and indented as requested.
(fixes regression: Mouseover events in unifinder displays again.)
Attachment #193431 -
Attachment is obsolete: true
Attachment #193501 -
Flags: first-review?(jminta)
Attachment #193431 -
Flags: first-review?(jminta)
Assignee | ||
Comment 7•19 years ago
|
||
Comment on attachment 193501 [details] [diff] [review]
move getCurrentNextOrPreviousRecurrence to calendarUtils.js from deleted calendarEvent.js
For future reference, I've been told "if (foo) {" with a space between f and (.
r=jminta
Attachment #193501 -
Flags: first-review?(jminta) → first-review+
Assignee | ||
Comment 8•19 years ago
|
||
Patch checked in.
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•