YAHOO.namespace("iFactor");YAHOO.iFactor.XHRDataSource=function(A,B){this.dataType=YAHOO.util.XHRDataSource.TYPE_XHR;this.connMgr=this.connMgr||YAHOO.util.Connect;A=A||"";YAHOO.iFactor.XHRDataSource.superclass.constructor.superclass.constructor.call(this,A,B)};YAHOO.lang.extend(YAHOO.iFactor.XHRDataSource,YAHOO.util.XHRDataSource,{iFactorCacheRemoveEvent:new YAHOO.util.CustomEvent("iFactorCacheRemoveEvent",null,null,YAHOO.util.CustomEvent.LIST),addToCache:function(D,C){var A=this._aCache;if(!A){return }var E;while(A.length>=this.maxCacheEntries){E=A.shift();YAHOO.log("Removing Item from Cache","cache","Event");this.iFactorCacheRemoveEvent.fire({request:D,response:C,cacheItem:E})}var B={request:D,response:C};A[A.length]=B;this.fireEvent("responseCacheEvent",{request:D,response:C})},doBeforeCallback:function(A,I,K,H){var B=[];var J,F,C;var G=H.argument;var E=""+K.meta.iconurl;var D=G.layer;var B=D.IFAddJSON(K.results,E);var L=K.meta;if(!L){K.meta={};L=K.meta}L.shapes=B;return K},getCacheSize:function(){var A=this._aCache;var B=0;if(A){B=A.length}return B}});
