Thanks to visit codestin.com
Credit goes to github.com

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

Commit 9802937

Browse files
author
Pascal
committed
Fixing angular crash on <object> in DOM, which doesn't necessarily have a childNodes attribute
1 parent 649b892 commit 9802937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function $CompileProvider($provide) {
380380
? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement)
381381
: null;
382382

383-
childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || !nodeList[i].childNodes.length)
383+
childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || !nodeList[i].childNodes || !nodeList[i].childNodes.length)
384384
? null
385385
: compileNodes(nodeList[i].childNodes,
386386
nodeLinkFn ? nodeLinkFn.transclude : transcludeFn);

0 commit comments

Comments
 (0)