Closed Bug 386336 Opened 17 years ago Closed 17 years ago

Strict warning: short/long is a reserved identifier (in calendar-multiday-view.xml)

Categories

(Calendar :: Calendar Frontend, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: Fallen)

References

Details

Attachments

(1 file)

Using Thunderbird 2.0.0.5pre (20070627) with Lightning 0.5pre (2007062907)

Switching to Day view or Week view produces dozens of strict warnings like

Warning: short is a reserved identifier
Source file: chrome://calendar/content/calendar-multiday-view.xml
Line: 1802, Column: 14
Source code:
          var short = document.getAnonymousElementByAttribute(this, "anonid", "shortWeekdayName"); 

Warning: long is a reserved identifier
Source file: chrome://calendar/content/calendar-multiday-view.xml
Line: 1803, Column: 14
Source code:
          var long = document.getAnonymousElementByAttribute(this, "anonid", "longWeekdayName"); 

Same warnings also for lines 1806, 1807, 1819, 1820, 1823, 1826, 1827, 1829, 1830, 1834, 1844, 1845, 1846, 1847
Summary: Strict warning: short is a reserved identifier, long is a reserved identifier (in calendar-multiday-view.xml) → Strict warning: short/long is a reserved identifier (in calendar-multiday-view.xml)
Blocks: 369848
Assignee: nobody → philipp
Status: NEW → ASSIGNED
OS: Windows 2000 → All
Hardware: PC → All
Attached patch Fix variable names - v1 — — Splinter Review
This should do it. It seems I didn't have strict warnings on in that build...
Attachment #270476 - Flags: review?(michael.buettner)
Comment on attachment 270476 [details] [diff] [review]
Fix variable names - v1

I also didn't stumble across this while reviewing, nice catch. r=mickey.
Attachment #270476 - Flags: review?(michael.buettner) → review+
Checked in on HEAD and MOZILLA_1_8_BRANCH

-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.7
Verified -> task is fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: