Functiondojo.withDoc

<script src="../../js/dojo.js"></script>
defined in dojo/_base/window.js

When callback() returns or throws an error, the dojo.doc will be restored to its previous state.

Usage

function (/*Object*/ documentObject, /*Function*/ callback, /*Object?*/ thisObject, /*Array?*/ cbArguments) (view source)
parametertypedescription
documentObjectObject 
callbackFunctionwill be executed in the context of object thisObject
thisObjectObjectOptional.
cbArgumentsArrayOptional.