aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-26 16:49:34 -0700
committerMisko Hevery2010-04-26 16:49:34 -0700
commit2a7cd9f39089af08ff42be6fb247116c35e2d345 (patch)
tree2291af3eb06371b2778ca1bbf9b3aa03b4779900 /src/Compiler.js
parent02fa10f93ce5a75dd925f13ec7456802a6e120e4 (diff)
downloadangular.js-2a7cd9f39089af08ff42be6fb247116c35e2d345.tar.bz2
fix ie bug with null and orphans elements
Diffstat (limited to 'src/Compiler.js')
-rw-r--r--src/Compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index 290eb3b7..c77c6b30 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -132,7 +132,7 @@ Compiler.prototype = {
directives = false;
var parent = element.parent();
template.addInit(widget.call(selfApi, element));
- if (parent) {
+ if (parent && parent[0]) {
element = jqLite(parent[0].childNodes[elementIndex]);
}
}