datasource-polling-min.js revision aa654579cf9c3726db8672b7f090467332fc1ad6
YUI.add("datasource-polling",function(C){var A=C.Lang,B=function(){};B.prototype={_intervals:null,setInterval:function(F,E,H){if(A.isNumber(F)&&(F>=0)){var D=this,G=setInterval(function(){D.sendRequest(E,H);},F);if(!this._intervals){this._intervals=[];}this._intervals.push(G);return G;}else{}},clearInterval:function(F){var E=this._intervals||[],D=E.length-1;for(;D>-1;D--){if(E[D]===F){E.splice(D,1);clearInterval(F);}}},clearAllIntervals:function(){var E=this._intervals,D=E.length-1;for(;D>-1;D--){clearInterval(E[D]);}this._intervals=[];}};C.Base.build(C.DataSource.Local.NAME,C.DataSource.Local,[B],{dynamic:false});},"@VERSION@",{requires:["datasource-base"]});