Lines Matching refs:result

40 d.console.addLine().attribute.addClass("Error").update("<strong>Error: </strong>"+message,true);}},eval:function(_cmd){var result;with(firebug){if(_cmd.length==0)
41 return;el.left.console.input.environment.getElement().value="";d.console.historyIndex=d.console.history.push(_cmd);try{if(_cmd==='console.firebug'){d.console.addLine().attribute.addClass("Arrow").update(firebug.version);}else{result=eval.call(window,_cmd);d.console.print(_cmd,result);}}catch(e){d.console.addLine().attribute.addClass("Arrow").update(">>> "+_cmd);d.console.printException(e);}
49 parentElement.environment.addStyle({"display":"block"});}}},highlight:function(_value,_inObject,_inArray,_link){with(firebug){var isArray=false,isHash,isElement=false,vtype=typeof _value,result=[];if(vtype=="object"){if(Object.prototype.toString.call(_value)==="[object Date]"){vtype="date";}else if(Object.prototype.toString.call(_value)==="[object String]"){vtype="string";}else if(Object.prototype.toString.call(_value)==="[object Boolean]"){vtype="boolean";}else if(Object.prototype.toString.call(_value)==="[object RegExp]"){vtype="regexp";}}
50 try{isArray=lib.util.IsArray(_value);isHash=lib.util.IsHash(_value);isElement=_value!=undefined&&Boolean(_value.nodeName)&&Boolean(_value.nodeType);if(_value==null||vtype=="number"||vtype=="string"||vtype=="boolean"||(vtype=="function"&&_value.nodeName!="OBJECT")||vtype=="regexp"||vtype=="date"){if(_value==null){if(_value===undefined){result.push("<span class='Null'>undefined</span>");}else{result.push("<span class='Null'>null</span>");}}else if(vtype=="regexp"){result.push("<span class='Maroon'>"+_value+"</span>");}else if(vtype=="date"){result.push("<span class='DarkBlue'>'"+_value+"'</span>");}else if(vtype=="boolean"||vtype=="number"){result.push("<span class='DarkBlue'>"+_value+"</span>");}else if(vtype=="function"){result.push("<span class='"+(_inObject?"Italic Gray":"Green")+"'>function()</span>");}else{result.push("<span class='Red'>\""+(!_inObject&&!_inArray?_value:_value.substring(0,35)+(_value.length>35?" ...":"")).replace(/\n/g,"\\n").replace(/\s/g,"&nbsp;").replace(/>/g,"&#62;").replace(/</g,"&#60;")+"\"</span>");}}
52 result.push(d.highlight(_value.nodeValue));else if(_inObject){result.push("<span class='Gray Italic'>"+_value.nodeName.toLowerCase()+"</span>");}else{result.push("<span class='Blue"+(!_link?"'":" ObjectLink' onmouseover='this.className=this.className.replace(\"ObjectLink\",\"ObjectLinkHover\")' onmouseout='this.className=this.className.replace(\"ObjectLinkHover\",\"ObjectLink\")' onclick='firebug.d.html.inspect(firebug.d.console.cache["+(d.console.cache.push(_value)-1)+"])'")+"'>");if(_inArray){result.push(_value.nodeName.toLowerCase());if(_value.getAttribute){if(_value.getAttribute&&_value.getAttribute("id"))
53 result.push("<span class='DarkBlue'>#"+_value.getAttribute("id")+"</span>");var elClass=_value.getAttribute(lib.env.ie&&!lib.env.ie8?"className":"class")||"";result.push(!elClass?"":"<span class='Red'>."+elClass.split(" ")[0]+"</span>");}
54 result.push("</span>");}else{result.push("<span class='DarkBlue'>&#60;<span class='Blue TagName'>"+_value.nodeName.toLowerCase());if(_value.attributes){for(var i=0,len=_value.attributes.length;i<len;i++){var item=_value.attributes[i];if(!lib.env.ie||item.nodeValue)
55 result.push(" <span class='DarkBlue'>"+item.nodeName+"=\"<span class='Red'>"+item.nodeValue+"</span>\"</span>");}}
56 result.push("</span>&#62;</span>");}}}
57 else if(isArray||isHash){if(isArray){if(_inObject){result.push("<span class='Gray Italic'>["+_value.length+"]</span>");}else{result.push("<span class='Strong'>[ ");for(var i=0,len=_value.length;i<len;i++){if((_inObject||_inArray)&&i>3){result.push(", <span class='Strong Gray'>"+(len-4)+" More...</span>");break;}
58 result.push((i>0?", ":"")+d.highlight(_value[i],false,true,true));}
59 result.push(" ]</span>");}}else if(_inObject){result.push("<span class='Gray Italic'>Object</span>");}else{result.push("<span class='Strong Green"+(!_link?"'":" ObjectLink' onmouseover='this.className=this.className.replace(\"ObjectLink\",\"ObjectLinkHover\")' onmouseout='this.className=this.className.replace(\"ObjectLinkHover\",\"ObjectLink\")' onclick='firebug.d.console.openObject("+(d.console.cache.push(_value)-1)+")'")+">Object");var i=0;for(var key in _value){var value=_value[key];if((_inObject||_inArray)&&i>3){result.push(" <span class='Strong Gray'>More...</span>");break;}
60 result.push(" "+key+"="+d.highlight(value,true));i++;}
61 result.push("</span>");}}else{result.push(["<span class'Gray Italic'>"+_value+"</span>"]);}}catch(e){result.push("..");}
62 return result.join("");}},html:{nIndex:"computedStyle",current:null,highlight:function(_element,_clear,_event){with(firebug){if(_element.firebugElement){return;}
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)