From 9e67da420b60a417204ab53e8a16aa291f2b1ca0 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 16 Feb 2011 11:53:11 -0500 Subject: Corrected an issue where properties inherited from __proto__ show up in ng:repeat. Closses #112 --- src/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets.js') diff --git a/src/widgets.js b/src/widgets.js index d58e7789..fe808740 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -927,7 +927,7 @@ angularWidget('@ng:repeat', function(expression, element){ } for (key in collection) { - if (!is_array || collection.hasOwnProperty(key)) { + if (collection.hasOwnProperty(key)) { if (index < childCount) { // reuse existing child childScope = children[index]; -- cgit v1.2.3