Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(ng-repeat): properly detect the end of an ng-repeat-start block
Browse files Browse the repository at this point in the history
This bug was introduced when by.exactRepeater was

Discovered while investigating issue #2365
  • Loading branch information
sjelin committed Jul 22, 2015
1 parent 3508335 commit 82fbe77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/clientsidescripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ functions.findBindings = function(binding, exactMatch, using, rootSelector) {
var elem = repeatElems[i];
var row = [];
while (elem.nodeType != 8 ||
!repeaterMatch(elem.nodeValue, repeater, exact)) {
!repeaterMatch(elem.nodeValue, repeater)) {
if (elem.nodeType == 1) {
row.push(elem);
}
Expand Down Expand Up @@ -194,7 +194,7 @@ functions.findBindings = function(binding, exactMatch, using, rootSelector) {
if (repeaterMatch(repeatElems[i].getAttribute(attr), repeater, exact)) {
var elem = repeatElems[i];
while (elem.nodeType != 8 ||
!repeaterMatch(elem.nodeValue, repeater, exact)) {
!repeaterMatch(elem.nodeValue, repeater)) {
if (elem.nodeType == 1) {
rows.push(elem);
}
Expand Down Expand Up @@ -256,7 +256,7 @@ functions.findRepeaterElement = function(repeater, exact, index, binding, using,
var elem = repeatElems[i];
var row = [];
while (elem.nodeType != 8 || (elem.nodeValue &&
!repeaterMatch(elem.nodeValue, repeater, exact))) {
!repeaterMatch(elem.nodeValue, repeater))) {
if (elem.nodeType == 1) {
row.push(elem);
}
Expand Down Expand Up @@ -363,7 +363,7 @@ functions.findRepeaterColumn = function(repeater, exact, binding, using, rootSel
var elem = repeatElems[i];
var row = [];
while (elem.nodeType != 8 || (elem.nodeValue &&
!repeaterMatch(elem.nodeValue, repeater, exact))) {
!repeaterMatch(elem.nodeValue, repeater))) {
if (elem.nodeType == 1) {
row.push(elem);
}
Expand Down

0 comments on commit 82fbe77

Please sign in to comment.