Permalink
Browse files

minor change to loop which adds tag functions to Jaml.Template.prototype

  • Loading branch information...
1 parent c9546b3 commit 048676daa8a9d8d9119e3979ed148fad8a194704 @erikvold erikvold committed Jan 29, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/Template.js
View
@@ -123,8 +123,7 @@ Jaml.Template.prototype = {
};
};
- for (var i = tags.length - 1; i >= 0; i--){
- var tagName = tags[i];
- Jaml.Template.prototype[tagName] = makeTagHelper(tagName);
+ for (var i = 0, tag; tag = tags[i]; i++) {
+ Jaml.Template.prototype[tag] = makeTagHelper(tag);
};
})();

0 comments on commit 048676d

Please sign in to comment.