Closed
Bug 1557624
Opened 7 years ago
Closed 7 years ago
correct usage of the global cal import
Categories
(Calendar :: General, task)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
68
People
(Reporter: mkmelin, Assigned: mkmelin)
References
Details
Attachments
(1 file, 1 obsolete file)
|
10.12 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
We have a few places where "cal" is used, but not properly imported. Just happens to work (in a limited context) since the define comes in from other included scripts.
| Assignee | ||
Comment 1•7 years ago
|
||
These are the ones I could find. It's possible there is more if they are on the second line of the /* global(s) */
Attachment #9070500 -
Flags: review?(paul)
Updated•7 years ago
|
Blocks: track-lightning-7.0
Comment 2•7 years ago
|
||
Comment on attachment 9070500 [details] [diff] [review]
bug1557624_cal_def.patch
Review of attachment 9070500 [details] [diff] [review]:
-----------------------------------------------------------------
Changes look good. I did some searching and found a few more cases:
- calendar-views.js
- calendar-alarm-widget.js
- gdata-list-tree.js
r+ with those included. (Also, I see some of these files use commas in the globals list. Would be good to remove those for consistency. Up to you if you want to do some of that here while we're at it.)
Attachment #9070500 -
Flags: review?(paul) → review+
| Assignee | ||
Comment 3•7 years ago
|
||
Seems "global" and commas are the preferred way: https://eslint.org/docs/user-guide/configuring#specifying-globals
| Assignee | ||
Comment 4•7 years ago
|
||
Attachment #9070500 -
Attachment is obsolete: true
Attachment #9070676 -
Flags: review+
| Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/e5ed77a2a024
correct usage of the global cal import. r=pmorris
Comment 6•7 years ago
|
||
Comment on attachment 9070676 [details] [diff] [review]
bug1557624_cal_def.patch
I guess this is needed to make the date/time pickers available to add-ons.
Attachment #9070676 -
Flags: approval-calendar-beta+
Updated•7 years ago
|
Target Milestone: --- → 7.1
Comment 7•7 years ago
|
||
TB 68 beta / Cal 7.0:
https://hg.mozilla.org/releases/comm-beta/rev/7d11de71c9398aa5a4575b97870264473e711f0f
Target Milestone: 7.1 → 7.0
You need to log in
before you can comment on or make changes to this bug.
Description
•