Closed
Bug 96211
Opened 23 years ago
Closed 23 years ago
javascript strict warnings in button.xml
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
VERIFIED
FIXED
Future
People
(Reporter: bugzilla, Assigned: jag+mozilla)
Details
Attachments
(2 files)
829 bytes,
patch
|
Details | Diff | Splinter Review | |
1.27 KB,
patch
|
Details | Diff | Splinter Review |
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++) {
-----------
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
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=?
Comment 3•23 years ago
|
||
Cc'ing folks. I'll r or sr= as needed. Hyatt and jag are ahead of me in line.
/be
Assignee | ||
Comment 4•23 years ago
|
||
I'd like to see the declaration of |children| and |i| outside the two
loops. Call me old-fashioned :-) r=jag regardless.
Reporter | ||
Comment 5•23 years ago
|
||
Reporter | ||
Comment 7•23 years ago
|
||
Brendan: could you sr the latest patch?
Comment 8•23 years ago
|
||
sr=brendan@mozilla.org -- hyatt can check in!
/be
Reporter | ||
Comment 9•23 years ago
|
||
Jag: please check in....
Someone plese tell Hyatt that he has to turn on strict javascript warnings...
Assignee | ||
Comment 10•23 years ago
|
||
Henrik: it's that a= time again, and I'm not even gonna bother.
Reporter | ||
Comment 11•23 years ago
|
||
the last statement I really really dont understand. These js warnings are
flooding the console!
Comment 12•23 years ago
|
||
a=asa on behalf of drivers.
Assignee | ||
Updated•23 years ago
|
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 13•23 years ago
|
||
Checked in Aug 24.
Reporter | ||
Comment 14•23 years ago
|
||
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.
Description
•