dojo.withGlobal
<script src="../../js/dojo.js"></script>
defined in dojo/_base/window.js
When callback() returns or throws an error, the dojo.global and dojo.doc will be restored to its previous state.
Usage
parameter | type | description |
---|---|---|
globalObject | Object | document as dojo.doc. If provided, globalObject will be executed in the context of object thisObject |
callback | Function | |
thisObject | Object | Optional. |
cbArguments | Array | Optional. |