Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6952a09

Browse files
committed
fixup! fix($compile): use correct parent element when requiring on html element
1 parent b4e13a2 commit 6952a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2961,7 +2961,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
29612961
if (!value) {
29622962
var dataName = '$' + name + 'Controller';
29632963

2964-
if (inheritType === '^^' && $element && $element[0].nodeType === NODE_TYPE_DOCUMENT) {
2964+
if (inheritType === '^^' && $element[0] && $element[0].nodeType === NODE_TYPE_DOCUMENT) {
29652965
// inheritedData() uses the documentElement when it finds the document, so we would
29662966
// require from the element itself.
29672967
value = null;

0 commit comments

Comments
 (0)