What is the best way to bind PhoneGap events (like backbutton) to views in ember.js
Posted
by
Fedor
on Stack Overflow
See other posts from Stack Overflow
or by Fedor
Published on 2012-04-16T11:25:14Z
Indexed on
2012/04/16
11:29 UTC
Read the original article
Hit count: 404
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.
© Stack Overflow or respective owner