Functiondojo.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

function (/*Object*/ globalObject, /*Function*/ callback, /*Object?*/ thisObject, /*Array?*/ cbArguments) (view source)
parametertypedescription
globalObjectObjectdocument as dojo.doc. If provided, globalObject will be executed in the context of object thisObject
callbackFunction 
thisObjectObjectOptional.
cbArgumentsArrayOptional.