Do not iterate array via for ( i in array ). such iterations include methods added in array prototype.

This commit is contained in:
Alexander Popov committed 2013-04-23 16:28:33 +04:00
1 parent 63ec92e114
commit c7b0dad1ae
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}