jaunesarmiento / fries

Fries helps you prototype Android apps using HTML, CSS, and JavaScript.
MIT License
1.55k stars 222 forks source link

Chrome and action-bar.js: debug is not defined #11

Closed aymanfarhat closed 11 years ago

aymanfarhat commented 11 years ago

Hello, when I am running a Fries interface that uses action-bar.js within the browser, I keep getting: Uncaught ReferenceError: debug is not defined the debug variable is undefined within the browser, I guess that variable usually exists within the global scope of a phonegap application?

I think it would be nice to fix that issue for better debugging Fries apps in the browser.

Thanks and keep up the good work!

jaunesarmiento commented 11 years ago

Hi @aymanfarhat, I think you are using the documentation version of action-bars.js. The debug variable was only added to the global scope (in docs.js) and checked in action-bars.js to force the checking of action overflows in the documentation demo.

I suggest that you download the latest version of Fries (https://github.com/jaunesarmiento/fries/tree/1.0.0) and use the JS files in the /lib folder.

I hope that answers your question. Cheers!

aymanfarhat commented 11 years ago

Yes you're totally right my bad, thanks for the swift reply. I am currently evaluating Fries for a project with Phonegap build, will keep you posted if I run into anything. Have a good day :)

jaunesarmiento commented 11 years ago

That's good to hear. Have fun coding! :)