diff --git a/lib/clientsidescripts.js b/lib/clientsidescripts.js index 162babe36..feee12364 100644 --- a/lib/clientsidescripts.js +++ b/lib/clientsidescripts.js @@ -136,7 +136,8 @@ functions.findBindings = function(binding, exactMatch, using, rootSelector) { } } } - return [rows[index]].concat(multiRows[index]); + var row = rows[index] || [], multiRow = multiRows[index] || []; + return [].concat(row, multiRow); }; /**