sourcebitsllc / chocolatechip-ui

Mobile Web App Framework
www.chocolatechip-ui.com
MIT License
616 stars 88 forks source link

Bug in examples: Clicking Straight to Detail Article causes error, breaks demo #8

Closed rorito closed 10 years ago

rorito commented 10 years ago

Steps to reproduce: 1) Load Navigation Back To example chocolatechip-ui/examples-ios/navigation-backto.html

2) Click "Straight to Detail Article" button

Errors in console:

Mobile Safari: TypeError: 'undefined' is not a function (evaluating 'destination.prev()')

Chrome: Uncaught TypeError: Object #article3 has no method 'prev'

I seem to be getting this error trying to implement buttons / a tags in my own project. Could you also update the documentation about A tags that they don't use data-goto, you have to wire up actions via JS? Figured it out eventually from examples, but unclear in docs.

Thanks.

sourcebits-robertbiggs commented 10 years ago

Actually, if you go to the Tutorials, Navigation and scroll down to Non-Linear Back Navigation should should find everything you need to know there. Error being thrown was fixed in commit 147b06b9a1.