datasource-polling-min.js revision 909caa6404af5d6551ad6f4791ddbabe6167d042
YUI.add("datasource-polling",function(C){var A=C.Lang,B=function(){this._intervals={};};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);this._intervals[G]=G;return G;}else{}},clearInterval:function(D){if(this._intervals&&this._intervals[D]){delete this._intervals[D];clearInterval(D);}},clearAllIntervals:function(){C.each(this._intervals,this.clearInterval,this);}};C.augment(C.DataSource.Local,B);},"@VERSION@",{requires:["datasource-base"]});