Skip to content

Commit

Permalink
fix(by.exactRepeater): should split by "="
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelin committed Jul 13, 2015
1 parent d15ccdc commit 9fd632f
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 @@ -107,7 +107,7 @@ functions.findBindings = function(binding, exactMatch, using, rootSelector) {
function repeaterMatch(ngRepeat, repeater, exact) {
if (exact) {
return ngRepeat.split(' track by ')[0].split(' as ')[0].split('|')[0].
trim() == repeater;
split('=')[0].trim() == repeater;
} else {
return ngRepeat.indexOf(repeater) != -1;
}
Expand Down Expand Up @@ -166,7 +166,7 @@ functions.findBindings = function(binding, exactMatch, using, rootSelector) {
function repeaterMatch(ngRepeat, repeater, exact) {
if (exact) {
return ngRepeat.split(' track by ')[0].split(' as ')[0].split('|')[0].
trim() == repeater;
split('=')[0].trim() == repeater;
} else {
return ngRepeat.indexOf(repeater) != -1;
}
Expand Down Expand Up @@ -222,7 +222,7 @@ functions.findRepeaterElement = function(repeater, exact, index, binding, using,
function repeaterMatch(ngRepeat, repeater, exact) {
if (exact) {
return ngRepeat.split(' track by ')[0].split(' as ')[0].split('|')[0].
trim() == repeater;
split('=')[0].trim() == repeater;
} else {
return ngRepeat.indexOf(repeater) != -1;
}
Expand Down Expand Up @@ -329,7 +329,7 @@ functions.findRepeaterColumn = function(repeater, exact, binding, using, rootSel
function repeaterMatch(ngRepeat, repeater, exact) {
if (exact) {
return ngRepeat.split(' track by ')[0].split(' as ')[0].split('|')[0].
trim() == repeater;
split('=')[0].trim() == repeater;
} else {
return ngRepeat.indexOf(repeater) != -1;
}
Expand Down

0 comments on commit 9fd632f

Please sign in to comment.