root / trunk / web / dojo / dojox / timing / doLater.js @ 12
History | View | Annotate | Download (613 Bytes)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
4 | see: http://dojotoolkit.org/license for details
|
||
5 | */
|
||
6 | |||
7 | |||
8 | if(!dojo._hasResource["dojox.timing.doLater"]){ |
||
9 | dojo._hasResource["dojox.timing.doLater"]=true; |
||
10 | dojo.provide("dojox.timing.doLater");
|
||
11 | dojo.experimental("dojox.timing.doLater");
|
||
12 | dojox.timing.doLater=function(_1,_2,_3){ |
||
13 | if(_1){
|
||
14 | return false; |
||
15 | } |
||
16 | var _4=dojox.timing.doLater.caller,_5=dojox.timing.doLater.caller.arguments; |
||
17 | _3=_3||100;
|
||
18 | _2=_2||dojo.global; |
||
19 | setTimeout(function(){
|
||
20 | _4.apply(_2,_5); |
||
21 | },_3); |
||
22 | return true; |
||
23 | }; |
||
24 | } |