Toura/mulberry — Issue #196: Require javascript as needed
Author: futuraprime
Created: 2011-12-13 16:47:39+00:00
State: open

We're now baking javascript into apps that isn't generally necessary to run them (e.g. the PhoneGap hardware apis we started implementing over the weekend). These are all set up using Dojo's modules, which allow you to build the JS pulling in only "required" JavaScript files. If someone wants to use the accelerometer, can we just have them call `dojo.require('toura.app.PhoneGap.accelerometer');` in their code? This will help prevent generated Mulberry apps from becoming bloated as the framework grows larger and more capable.