]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/javascript/yui3/build/yui/yui-later.js
Release 6.2.0beta4
[Github/sugarcrm.git] / include / javascript / yui3 / build / yui / yui-later.js
1 /*
2  Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3  Code licensed under the BSD License:
4  http://developer.yahoo.net/yui/license.txt
5  version: 3.0.0
6  build: 1549
7  */
8 YUI.add('yui-later',function(Y){(function(){var L=Y.Lang,later=function(when,o,fn,data,periodic){when=when||0;o=o||{};var m=fn,d=Y.Array(data),f,r;if(L.isString(fn)){m=o[fn];}
9 if(!m){}
10 f=function(){m.apply(o,d);};r=(periodic)?setInterval(f,when):setTimeout(f,when);return{id:r,interval:periodic,cancel:function(){if(this.interval){clearInterval(r);}else{clearTimeout(r);}}};};Y.later=later;L.later=later;})();},'3.0.0',{requires:['yui-base']});