Last active
November 10, 2017 19:47
-
-
Save joegaudet/56cec6db418502c41caa7c0540e22448 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Models have references to the global store | |
// which has a reference to the container | |
const Bar = DS.Model.extend({}); | |
const Foo = Ember.Object.extend({ | |
someData: [] | |
}); | |
const aFoo = Foo.create({}); | |
// by pushing this model on to the prototype | |
// we've sprung a leak | |
aFoo.get('someData').push(aFoo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment