Lines Matching defs:Array

42 d.console.scroll();}},scroll:function(){with(firebug){el.left.console.monitor.environment.getElement().parentNode.scrollTop=Math.abs(el.left.console.monitor.environment.getSize().offsetHeight-(el.left.console.monitor.element.parentNode.offsetHeight-11));}},run:function(_command){with(firebug){if(!internal.init){d.console.cache.push({"command":_command,"arg":Array.prototype.slice.call(arguments,1)});}else{d.console.cmd[_command].apply(window,Array.prototype.slice.call(arguments,1));}}},toggleML:function(){with(firebug){var open=!env.ml;env.ml=!env.ml;d.navigateRightColumn("console",open);el[open?"left":"right"].console.mlButton.environment.addStyle({display:"none"});el[!open?"left":"right"].console.mlButton.environment.addStyle({display:"block"});el.left.console.mlButton.attribute[(open?"add":"remove")+"Class"]("CloseML");}},countMap:{},timeMap:{},cmd:{log:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Log").update(args);d.console.scroll();}},warn:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Warn").update(args);d.console.scroll();}},info:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Info").update(args);d.console.scroll();}},debug:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Debug").update(args);d.console.scroll();}},error:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Error").update(args);d.console.scroll();}},trace:function(_value){with(firebug){var stackAmt=3,f=arguments.caller,isArray=lib.util.IsArray(f);if((!isArray&&f)||(isArray&&f.length>0)){d.console.addLine().attribute.addClass("Arrow").update(">>> console.trace(stack)");for(var i=0;i<stackAmt;i++){var func=f.toString(),args=f.arguments;d.dom.open({"function":func,"arguments":args},d.console.addLine());f=f.caller;}}}},dir:function(_value){with(firebug){d.console.addLine().attribute.addClass("Arrow").update(">>> console.dir("+_value+")");d.dom.open(_value,d.console.addLine());}},dirxml:function(){with(firebug){d.console.cmd.log.apply(this,arguments);}},time:function(_name){with(firebug){d.console.timeMap[_name]=new Date().getTime();}},timeEnd:function(_name){with(firebug){if(_name in d.console.timeMap){var delta=new Date().getTime()-d.console.timeMap[_name],args=d.console.formatArgs.apply(window,[_name+":",delta+"ms"]);d.console.addLine().attribute.addClass("log").update(args);delete d.console.timeMap[_name];}}},count:function(_name){with(firebug){if(!d.console.countMap[_name])
99 styleSheet.insertRule(rule,styleSheet.cssRules.length);}}}},scriptsSelectbox:function(){with(firebug){d.scripts.open(parseInt(el.button.scripts.selectbox.environment.getElement().value));}},xhrTextbox:function(_event){with(firebug){if(_event.keyCode==13){d.xhr.addObject.apply(internal.targetWindow,el.button.xhr.textbox.environment.getElement().value.split(","));}}}}};(function(_scope){_scope.lib={};var pi=_scope.lib;pi.version=[1.1,2008091000];pi.env={ie:/MSIE/i.test(navigator.userAgent),ie6:/MSIE 6/i.test(navigator.userAgent),ie7:/MSIE 7/i.test(navigator.userAgent),ie8:/MSIE 8/i.test(navigator.userAgent),firefox:/Firefox/i.test(navigator.userAgent),opera:/Opera/i.test(navigator.userAgent),webkit:/Webkit/i.test(navigator.userAgent),camino:/Camino/i.test(navigator.userAgent)};pi.get=function(){return document.getElementById(arguments[0]);};pi.get.byTag=function(){return document.getElementsByTagName(arguments[0]);};pi.get.byClass=function(){return document.getElementsByClassName.apply(document,arguments);};pi.util={Array:{clone:function(_array,_undeep){var tmp=[];Array.prototype.push.apply(tmp,_array);pi.util.Array.forEach(tmp,function(_item,_index,_source){if(_item instanceof Array&&!_undeep)
100 _source[_index]=pi.util.Array.clone(_source[_index]);});return tmp;},count:function(_array,_value){var count=0;pi.util.Array.forEach(_array,function(){count+=Number(arguments[0]==_value);});return count;},forEach:function(_array,_function){if(_array.forEach)
103 return index;},remove:function(_array,_index){var result=_array.slice(0,_index);_array=Array.prototype.push.apply(result,_array.slice(_index+1));return result;}},Curry:function(_fn,_scope){var fn=_fn,scope=_scope||window,args=Array.prototype.slice.call(arguments,2);return function(){return fn.apply(scope,args.concat(Array.prototype.slice.call(arguments,0)));};},Extend:function(_superClass,_prototype,_skipClonning){var object=new pi.base;if(_prototype["$Init"]){object.init=_prototype["$Init"];delete _prototype["$Init"];};object.body=_superClass==pi.base?_prototype:pi.util.Hash.merge(_prototype,_superClass.prototype);object.init=object.init||function(){if(_superClass!=pi.base)
105 if(window.NodeList&&window.NamedNodeMap&&!pi.env.ie8){if(_object instanceof Array||_object instanceof NodeList||_object instanceof NamedNodeMap||(window.HTMLCollection&&_object instanceof HTMLCollection))
108 pi.util.Element.setClass(_element,pi.util.Element.getClass(_element)+" "+_class);},getClass:function(_element){return _element.getAttribute(pi.env.ie&&!pi.env.ie8?"className":"class")||"";},hasClass:function(_element,_class){return pi.util.Array.indexOf(pi.util.Element.getClass(_element).split(" "),_class)>-1;},removeClass:function(_element,_class){if(pi.util.Element.hasClass(_element,_class)){var names=pi.util.Element.getClass(_element,_class).split(" ");pi.util.Element.setClass(_element,pi.util.Array.remove(names,pi.util.Array.indexOf(names,_class)).join(" "));}},setClass:function(_element,_value){if(pi.env.ie8){_element.setAttribute("className",_value);_element.setAttribute("class",_value);}else{_element.setAttribute(pi.env.ie?"className":"class",_value);}},toggleClass:function(){if(pi.util.Element.hasClass.apply(this,arguments))
115 return pi.util.Element.getOpacity(_element,view);return typeof _property=="string"?view[_property]:view;}},Hash:{clone:function(_hash,_undeep){var tmp={};for(var key in _hash){if(!_undeep&&pi.util.IsArray(_hash[key])){tmp[key]=pi.util.Array.clone(_hash[key]);}else if(!_undeep&&pi.util.IsHash(_hash[key])){tmp[key]=pi.util.Hash.clone(_hash[key]);}else{tmp[key]=_hash[key];}}
116 return tmp;},merge:function(_hash,_source,_undeep){for(var key in _source){var value=_source[key];if(!_undeep&&pi.util.IsArray(_source[key])){if(pi.util.IsArray(_hash[key])){Array.prototype.push.apply(_source[key],_hash[key])}
118 value=pi.util.Array.clone(_source[key]);}
120 value=_hash[key];_hash[key]=value;};return _hash;}},String:{format:function(_str){var values=Array.prototype.slice.call(arguments,1);return _str.replace(/\{(\d)\}/g,function(){return values[arguments[1]];})}},GetViewport:function(){return{height:document.documentElement.clientHeight||document.body.clientHeight,width:document.documentElement.clientWidth||document.body.clientWidth}}};pi.base=function(){this.body={};this.init=null;this.build=function(_skipClonning){var base=this,skipClonning=_skipClonning||false,_private={},fn=function(){var _p=pi.util.Hash.clone(_private);if(!skipClonning){for(var key in this){if(pi.util.IsArray(this[key])){this[key]=pi.util.Array.clone(this[key]);}else
133 url+=(url.search("\\?")==-1?"?":"&")+pi.util.String.format("{0}",dataUrl);this.api.open(this.environment.getType(),url,this.environment.getAsync());if(this.environment.getType()=="POST"){this.api.setRequestHeader("Content-Type","application/x-www-form-urlencoded");};this.api.send(this.environment.getType()=="GET"?"":dataUrl);return this;}};pi.xhr.body.environment={"_async":true,"_api":null,"_cache":true,"_callback":null,"_data":{},"_type":"GET","_url":"","setApi":function(_value){this._parent_.api=_value;this._setApi(_value);},"addCallback":function(_readyState,_fn){this.getCallback().push({"fn":_fn,"readyState":_readyState});return this._parent_;},"addData":function(_key,_value){this.getData()[_key]=_value;return this._parent_;},"setType":function(_value){this._setType(_value);return this._parent_;}};pi.xhr.body.event={"readystatechange":function(){var readyState=this.environment.getApi().readyState,callback=this.environment.getCallback();for(var i=0,len=callback.length;i<len;i++){if(pi.util.Array.indexOf(callback[i].readyState,readyState)>-1){callback[i].fn.apply(this);}}}};pi.xhr=pi.xhr.build();pi.xhr.get=function(_url,_returnPiObject){var request=new pi.xhr();request.environment.setAsync(false);request.environment.setUrl(_url);request.send();return _returnPiObject?request:request.environment.getApi();};pi.util.AddEvent(pi.env.ie?window:document,pi.env.ie?"load":"DOMContentLoaded",function(){for(var i=0,len=pi.util.Init.length;i<len;i++){pi.util.Init[i]();}});})(firebug);(function(){with(firebug){var scriptsIncluded=document.getElementsByTagName('script');for(var i=scriptsIncluded.length-1;i>=0;i--){var script=scriptsIncluded[i],src=getFileName(script.src);if(src){internal.liteFilename=src;break;}}