Skip to content

Commit

Permalink
Fixed bug in processing of nested elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisMoore committed Jul 23, 2010
1 parent 748a356 commit 2095b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.tmpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@
continue;
}
elems = elem.getElementsByTagName("*");
for ( var j = 0, m = elems.length; j < m; j++) {
processItemKey( elems[j] );
for ( var m = elems.length - 1; m >= 0; m-- ) {
processItemKey( elems[m] );
}
processItemKey( elem );
}
Expand Down

0 comments on commit 2095b04

Please sign in to comment.