aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2010-07-22 15:32:57 -0700
committerMisko Hevery2010-07-22 15:32:57 -0700
commit2987f7f705baffad8081fc4a3a95eab79b0d9695 (patch)
tree95cbcdb3e0dbf39d00b266075f551be8ddd87e9f /src
parent849a05b5a578f19ddc3d24dc9fbd304e0e07612a (diff)
downloadangular.js-2987f7f705baffad8081fc4a3a95eab79b0d9695.tar.bz2
fix howers which were accidently broken
Diffstat (limited to 'src')
-rw-r--r--src/Browser.js1
-rw-r--r--src/directives.js2
2 files changed, 1 insertions, 2 deletions
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,