lundi 3 août 2015

Ember Route now is singleton ? Needs confirmation

I'm using Ember 1.13.3, and somehow I noticed now that Route is also singleton (?), just like controller.

I was checking it because I notice a bug in my app since I upgraded to 1.13.3, and to confirm my suspicion I added console.log in the init method..., and saw that init method is called only once for the route (I switched to another route and wend back).

Is it new (in Ember 1.13, and onward) ?

I need the confirmation if route is really singleton now, in order to rule out the possibility that this behavior I was observing was due to certain (mis)programming (my code).

Thanks, Raka




Aucun commentaire:

Enregistrer un commentaire