What is the best way to bind PhoneGap events (like backbutton) to views in ember.js
- by Fedor
I'm playing with PhoneGap and emberjs (trying to build "proof of concept" mobile/HTML5 application based on ember.js).
Ember.js itself works fine, but I haven't found any good way to "bind" PhoneGap events to views.
For instance, I would like to handle backbutton event and remove a view on it. It would be nice to define behavior in view class and call document.addEventListener when instance of the view is appended and call document.removeEventListener when view instance removed.