Difference between revisions of "Talk:XPCNativeWrapper"

From GreaseSpot Wiki
Jump to navigationJump to search
(Qwerty123)
m (revert defacement)
 
Line 1: Line 1:
Was or no, o fuck of and go on.
var arInputs=document.getElementsByTagName('input');
// does not work
for (var elmInput in arInputs) { ... }
// does work
var elmInput; for (var i=0; elmInput=arInputs[i]; i++) { ... }
 
Shouldn't this be:
 
var arInputs=document.getElementsByTagName('input');
// does not work
for (var elmInput in arInputs) { ... }
// does work
var elmInput; for (var i=0; i < arInputs.length; i++) {elmInput=arInputs[i]; ... }
 
:Fixed. --[[User:Henrik|Henrik]] 17:59, 25 May 2007 (EDT)

Latest revision as of 16:14, 20 June 2007

var arInputs=document.getElementsByTagName('input');
// does not work
for (var elmInput in arInputs) { ... } 
// does work
var elmInput; for (var i=0; elmInput=arInputs[i]; i++) { ... } 

Shouldn't this be:

var arInputs=document.getElementsByTagName('input');
// does not work
for (var elmInput in arInputs) { ... } 
// does work
var elmInput; for (var i=0; i < arInputs.length; i++) {elmInput=arInputs[i]; ... }
Fixed. --Henrik 17:59, 25 May 2007 (EDT)