aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-05 21:26:52 -0700
committerMisko Hevery2010-04-05 21:26:52 -0700
commite6460685869e16b5016de975fd0ba15a7e436951 (patch)
treebdf55503a5efd7e1922b73ab8ea0ac23c4137cf9 /src/jqLite.js
parent2107eafcde390eebbf59e829194626c488de9e29 (diff)
downloadangular.js-e6460685869e16b5016de975fd0ba15a7e436951.tar.bz2
added ng-controller directive
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 331db68d..9aa4f2c7 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -115,7 +115,8 @@ JQLite.prototype = {
remove: function() {
this.dealoc();
- this[0].parentNode.removeChild(this[0]);
+ var parentNode = this[0].parentNode;
+ if (parentNode) parentNode.removeChild(this[0]);
},
removeAttr: function(name) {