Skip to content

Commit

Permalink
only invoke didChange if a node is still present.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Jun 26, 2015
1 parent 0dc1a6c commit 9c52115
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ember-metal/lib/chains.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,13 @@ ChainNode.prototype = {

// then notify chains...
var chains = this._chains;
var node;
if (chains) {
for (var key in chains) {
chains[key].didChange(events);
node = chains[key];
if (node !== undefined) {
node.didChange(events);
}
}
}

Expand Down

0 comments on commit 9c52115

Please sign in to comment.