mirror of
https://github.com/RustyRaptor/CanvasLoader.git
synced 2026-12-03 17:55:15 -07:00
Do not iterate array via for ( i in array ). such iterations include methods added in array prototype.
This commit is contained in:
1 parent
63ec92e114
commit
c7b0dad1ae
1 file changed
+1
-1
@@ -157,7 +157,7 @@
|
||||
document.getElementsByTagName("head")[0].appendChild(addEl("style"));
|
||||
CanvasLoader.vmlSheet = document.styleSheets[document.styleSheets.length - 1];
|
||||
var a = ["group", "oval", "roundrect", "fill"], n;
|
||||
for (n in a) { CanvasLoader.vmlSheet.addRule(a[n], "behavior:url(#default#VML); position:absolute;"); }
|
||||
for ( var n = 0; n < a.length; ++n ) { CanvasLoader.vmlSheet.addRule(a[n], "behavior:url(#default#VML); position:absolute;"); }
|
||||
}
|
||||
this.vml = addEl("group", this.cont);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user