[XForms] Fix JS strict warnings. Bug 339091, r=smaug
git-svn-id: svn://10.0.0.236/trunk@198450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -342,7 +342,7 @@
|
||||
var walker = this.ownerDocument.createTreeWalker(
|
||||
this.pickerContent, NodeFilter.SHOW_ELEMENT, null, false);
|
||||
var child = null;
|
||||
while (child = walker.nextNode()) {
|
||||
while ((child = walker.nextNode())) {
|
||||
if (child == aNode)
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -240,6 +240,8 @@
|
||||
case 4: case 6: case 9: case 11:
|
||||
return 30;
|
||||
}
|
||||
// XXX: throw error?
|
||||
return 0;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
Reference in New Issue
Block a user