dojo.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
parameter | type | description |
---|---|---|
documentObject | Object | |
callback | Function | will be executed in the context of object thisObject |
thisObject | Object | Optional. |
cbArguments | Array | Optional. |