aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.js
diff options
context:
space:
mode:
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]);
}
}