Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Last active November 10, 2017 19:47
Show Gist options
  • Save joegaudet/56cec6db418502c41caa7c0540e22448 to your computer and use it in GitHub Desktop.
Save joegaudet/56cec6db418502c41caa7c0540e22448 to your computer and use it in GitHub Desktop.
// 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