diff --git a/lib/clientsidescripts.js b/lib/clientsidescripts.js index 33a2b2921..879a1512e 100644 --- a/lib/clientsidescripts.js +++ b/lib/clientsidescripts.js @@ -150,7 +150,9 @@ clientSideScripts.findBindings = function(binding, exactMatch, using) { var elem = repeatElems[i]; while (elem.nodeType != 8 || elem.nodeValue.indexOf(repeater) == -1) { - rows.push(elem); + if (elem.nodeType == 1) { + rows.push(elem); + } elem = elem.nextSibling; } }