On Feb 9, 11:02 am, Rebecca Murphey <
rmurp...@toura.com> wrote:
> Presently, these are the steps for adding vendor JS to your app:
>
> 1. Add the file to your app's javascript directory. Note that the file
> should be named so there is only one '.' in it, e.g. MyVendorCode.js
>
> 2. Open the file you just added, and add a dojo.provide statement at the
> beginning. For example:
>
> dojo.provide('client.MyVendorCode');
>
> 3. Open your app's javascript/base.js and add the following somewhere after
> the dojo.provide statement:
>
> dojo.require('client.MyVendorCode');
>
> The vendor code will now be available in your app, and will automatically
> be included in the "built" JavaScript that is generated for device testing
> and production.
>