maqetta/maqetta — Issue #1558: Don't add functions to dojox.mobile object
Author: jhpedemonte
Created: 2012-01-12 03:56:00+00:00
State: open
Labels: Priority High

... or to any other object that isn't ours. It's bad practice and can lead to issues.

In `Context.js._configDojoxMobile()`, there are 2 functions added to the `dojox.mobile` object.

Move them to `Context` (or somewhere else) and just pass in the `dojox.mobile` instance. If you only need to run some code **before** a `dojox.mobile` function runs, use [dojo.aspect](http://davidwalsh.name/dojo-aspect).

@peller