From 2987f7f705baffad8081fc4a3a95eab79b0d9695 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 22 Jul 2010 15:32:57 -0700 Subject: fix howers which were accidently broken --- src/Browser.js | 1 + src/directives.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/Browser.js b/src/Browser.js index 3299540c..2777dcda 100644 --- a/src/Browser.js +++ b/src/Browser.js @@ -22,6 +22,7 @@ function Browser(location, document, head) { this.location = location; this.document = document; + this.body = jqLite(document[0].body); this.head = head; this.idCounter = 0; } diff --git a/src/directives.js b/src/directives.js index 04831131..3e0aeffb 100644 --- a/src/directives.js +++ b/src/directives.js @@ -161,8 +161,6 @@ angularWidget("@ng:repeat", function(expression, element){ valueIdent = match[3] || match[1]; keyIdent = match[2]; - if (isUndefined(this.$eval(rhs))) this.$set(rhs, []); - var children = [], currentScope = this; this.$onEval(function(){ var index = 0, childCount = children.length, childScope, lastElement = reference, -- cgit v1.2.3