Closed Bug 96211 Opened 23 years ago Closed 23 years ago

javascript strict warnings in button.xml

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: bugzilla, Assigned: jag+mozilla)

Details

Attachments

(2 files)

Hyatt: again there are strict javascript warnings after you checkins! This time after bug 94943. Please make you you have "strict js warnings turned on" in Edit -> Prefs -> Debug Opening a new window will produce: Warning: redeclaration of var children Source File: Line: 11, Column: 14 Source Code: var children = this.childNodes; ------ Warning: redeclaration of var i Source File: Line: 12, Column: 19 Source Code: for (var i = 0; i < children.length; i++) { -----------
Status: NEW → ASSIGNED
Target Milestone: --- → Future
please dont future this one. All chrome pages with buttons on it (kind of all files) will generate these warnings! I've attached a patch that will fix the warnings. Anybody up for a r= and sr=?
Keywords: patch, review
Cc'ing folks. I'll r or sr= as needed. Hyatt and jag are ahead of me in line. /be
I'd like to see the declaration of |children| and |i| outside the two loops. Call me old-fashioned :-) r=jag regardless.
Attached patch better patch.Splinter Review
--> jag
Assignee: hyatt → jaggernaut
Status: ASSIGNED → NEW
Brendan: could you sr the latest patch?
sr=brendan@mozilla.org -- hyatt can check in! /be
Jag: please check in.... Someone plese tell Hyatt that he has to turn on strict javascript warnings...
Henrik: it's that a= time again, and I'm not even gonna bother.
the last statement I really really dont understand. These js warnings are flooding the console!
a=asa on behalf of drivers.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Checked in Aug 24.
Verified fixed in 20020115. Will reopen if I see these warnings again...
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: