From a877268f35cb0df8f34f60b71ad7201fef58d189 Mon Sep 17 00:00:00 2001 From: Ted Shaw Date: Fri, 14 Nov 2014 21:38:49 +0800 Subject: [PATCH] ng-repeat-start should not return extra null element --- lib/clientsidescripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }; /**