llaske/sugarizer — pull request #14 by GhostAlgorithm (2014-09-05 00:04:07+00:00)
Title: Updating TurtleJS Sept. 4, 2014

Hello :)

Manually pulling your changes for turtlejs to save/restore state, I saw that accidentally broke the web app for normal web browsers, so I made a couple of modifications:

- I saw that you changed the app init cycle specifically for sugarizer, so it broke all the application on web browsers, what I made was to create a constant SUGAR_VER on taconstants.js (SUGAR_VER=true means that you want to enable the sugar-specific functionallity like save/restore state), for future pull requests... if you make something that is specifically for sugar compatible devices, please surround all the sugar-specific code on "if (SUGAR_VER){}" and set SUGAR_VER = true to test the changes , so it will not broke the app for web browsers of normal PCs :)

-If you didn't noticed it, theres another flag on taconstans.js ... MOBILE_VER , when you want to pack the HTML/CSS/JS into an APK, you can set MOBILE_VER=true, so you will enable TurtleJS UI to Mobile devices (like drag and drop the canvas instead of using scrolls)

Thanks for your help to make turtlejs even better :)
Have a nice day

Jorge Gomez