UNPKG

dijit

Version:

Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible u

22 lines (20 loc) 540 B
// module: // dijit/tests/delay.js // summary: // AMD plugin that waits a specified number of ms before "loading". // Used to delay execution of callbacks registered by dojo.ready(). // (Used by _testCommon.html) // // Usage: ready(1, function(){ require(["dijit/tests/delay!300"]); }); // TODO: remove for 2.0, it's only used by _testCommon.js which will also be removed. define({ load: function(delay, req, loaded){ setTimeout(function(){ loaded(1); }, delay); }, dynamic: 1, normalize: function(id){ return id; } });