Skip to content

Instantly share code, notes, and snippets.

@balinterdi
Created April 30, 2014 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balinterdi/65e6be2b42a976b94df5 to your computer and use it in GitHub Desktop.
Save balinterdi/65e6be2b42a976b94df5 to your computer and use it in GitHub Desktop.
Using the no-no __container__.lookup for not knowing better
var App = Ember.Application.extend({
(...)
reset: function() {
this.__container__.lookup('store:main').clearCache();
this._super();
},
(...)
willDestroy: function() {
this.__container__.lookup('store:main').clearCache();
this._super();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment