triceam / app-UI

app-UI is a collection of user interface components that may be helpful to web and mobile developers for creating interactive applications using HTML and JavaScript, especially those targeting mobile devices. app-UI is a continual work in progress - it was born out of the necessity to have rich & native-feeling interfaces in HTML/JS experiences, and it works great with PhoneGap applications (http://www.phonegap.com). app-UI can easily be styled/customized using CSS.
http://triceam.github.com/app-UI/
Other
1.27k stars 239 forks source link

Added fix in viewnavigator.js that fixes back button issue on FireFox #42

Open dfranc3373 opened 11 years ago

dfranc3373 commented 11 years ago

I noticed that when using FireFox on the TV Listings example, that after you click the back button on at least 2 pages, it would crash with the error "viewDescriptor.animation = 'popEffect'". The error was caused by FireFox calling the script twice and popping the history object again setting it to null.

Fix was a if statement to check if the length of the array is not 1 before it pops.

dfranc3373 commented 11 years ago

This also should fix the freezing glitch that some Android users have reported.