Skip to content

Commit

Permalink
Range check node attributes. Fixes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 3, 2012
1 parent 115897e commit 455199a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enyo.js
Expand Up @@ -24,7 +24,7 @@
// infer the framework path from the document, unless the user has specified one explicitly
enyo.args.root = (enyo.args.root || tag.path); /*.replace("/source", "")*/;
// all attributes of the bootstrap script tag become enyo.args
for (var i=0, it; (it = tag.node.attributes.item(i)); i++) {
for (var i=0, al = tag.node.attributes.length, it; (i < al) && (it = tag.node.attributes.item(i)); i++) {
enyo.args[it.nodeName] = it.value;
}
}
Expand All @@ -38,4 +38,4 @@
script("../../loader.js");
script("boot.js");
script("../package.js");
})();
})();

0 comments on commit 455199a

Please sign in to comment.