Debian Codegraph @

dijit/tests/delay.js

raw symbols SCIP
1 // module:
2 // dijit/tests/delay.js
3 // summary:
4 // AMD plugin that waits a specified number of ms before "loading".
5 // Used to delay execution of callbacks registered by dojo.ready().
6 // (Used by _testCommon.html)
7 //
8 // Usage: ready(1, function(){ require(["dijit/tests/delay!300"]); });
9
10 // TODO: remove for 2.0, it's only used by _testCommon.js which will also be removed.
11
12 define({
13 load: function(delay, req, loaded){
14 setTimeout(function(){
15 loaded(1);
16 }, delay);
17 },
18 dynamic: 1,
19 normalize: function(id){
20 return id;
21 }
22 });