aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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,