Skip to content

Commit

Permalink
Revert "[BUGFIX release] fix issue with unchaining ChainNodes"
Browse files Browse the repository at this point in the history
  • Loading branch information
krisselden committed Dec 13, 2017
1 parent 997758a commit e1471e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions packages/ember-metal/lib/chains.js
Expand Up @@ -209,11 +209,8 @@ class ChainNode {
remove(path) {
let paths = this._paths;
if (paths === undefined) { return; }

if (paths[path] > 0) {
paths[path]--;
} else {
return;
}

let key = firstKey(path);
Expand Down
13 changes: 0 additions & 13 deletions packages/ember-runtime/tests/system/object/computed_test.js
Expand Up @@ -266,16 +266,3 @@ QUnit.test('Calling _super in apply outside the immediate function of a CP gette

ok(emberGet(SubClass.create(), 'foo'), 'FOO', 'super value is fetched');
});

QUnit.test('observing computed.reads prop and overriding it in create() works', function() {
let Obj = EmberObject.extend({
name: computed.reads('model.name'),
nameDidChange: observer('name', function() {})
});

let obj1 = Obj.create({name: '1'});
let obj2 = Obj.create({name: '2'});

equal(obj1.get('name'), '1');
equal(obj2.get('name'), '2');
});

0 comments on commit e1471e7

Please sign in to comment.