[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:
allan%beaufour.dk
2006-05-26 08:52:22 +00:00
parent 32530e598c
commit f1beefa3d6
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -240,6 +240,8 @@
case 4: case 6: case 9: case 11:
return 30;
}
// XXX: throw error?
return 0;
]]>
</body>
</method>