Skip to content

Commit

Permalink
Add guard against missing ownerNode
Browse files Browse the repository at this point in the history
This is an attempt to diagnose this issue:
emberjs#13846
  • Loading branch information
backspace committed Jul 20, 2016
1 parent 5757ea5 commit 26d7297
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ember-htmlbars/lib/utils/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default function subscribe(node, env, scope, stream) {
node.shouldReceiveAttrs = true;
}

node.ownerNode.emberView.scheduleRevalidate(node, labelFor(stream));
if (node.ownerNode) {
node.ownerNode.emberView.scheduleRevalidate(node, labelFor(stream));
}
}));
}

0 comments on commit 26d7297

Please sign in to comment.