I need to run a function when a particular object is created to validate the environment is setup correctly.
This works on an Ember.Controller but not on an Ember.Object.
checkEnvironment : function() {
...
}.on('init'),
Is there a way to hook into the contructor somehow?
Aucun commentaire:
Enregistrer un commentaire