mardi 30 décembre 2014

run a function when an Ember.Object is created

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