davebalmer / jo

Jo (0.5.0) is a thin (~16K) candy shell for making HTML5 apps. Jo works with: PhoneGap, Chrome, Safari, Opera, FireFox, iOS, Android, BlackBerry 10, Tizen, & Windows Phone 8+. Features include skinnable UI widgets, a clean event model and a light data layer.
MIT License
1.2k stars 180 forks source link

joStack should have a animateDoneEvent event #58

Open kscottj opened 12 years ago

kscottj commented 12 years ago

This would allow you to preform an action when the joStack is done animating( CSS transition) the current screen. I created a new event (animateDoneEvent) in my fork of jo for this purpose.

I use it to re-enable the back button so my IOS users can not click an the back button during a screen transition.

this.stack.animateDoneEvent.subscribe( function(){ console.debug("animate done enable back"); MobileApp.nav.back.enable();
});

davebalmer commented 11 years ago

This is a good suggestion, thanks. :)