vendredi 26 décembre 2014

Access the store from a model's static (aka class-level) method?

I've got this:



Post.reopenClass({
myStaticMethod: function() {
// I need to access the store here!
// this.store => undefined
}
});


PS Why can't i just import the store or something?





Aucun commentaire:

Enregistrer un commentaire