Lines Matching defs:util

52           window.console[command] = firebug.lib.util.Curry(firebug.d.console.run,window,command);
56 firebug.d.console.run('error',firebug.lib.util.String.format('{0} ({1},{2})',_message,firebug.getFileName(_file),_line));
93 env.popupWidth = window.opener.firebug.env.popupWidth || window.opener.firebug.lib.util.GetViewport().width;
94 env.popupHeight = window.opener.firebug.env.popupHeight || window.opener.firebug.lib.util.GetViewport().height;
97 env.popupWidth = env.popupWidth || lib.util.GetViewport().width;
98 env.popupHeight = env.popupHeight || lib.util.GetViewport().height;
133 el.mainiframe = new lib.element("IFRAME").attribute.set("id","FirebugIFrame").attribute.set('firebugIgnore',true).environment.addStyle({ "display":"none", "width":lib.util.GetViewport().width+"px" }).insert(document.body);
134 el.main = new lib.element("DIV").attribute.set("id","Firebug").attribute.set('firebugIgnore',true).environment.addStyle({ "display":"none", "width":lib.util.GetViewport().width+"px" }).insert(document.body);
170 el.nav.console = new lib.element("A").attribute.addClass("Tab Selected").event.addListener("click",lib.util.Curry(d.navigate,window,"console")).update("Console").insert(el.nav.container);
171 el.nav.html = new lib.element("A").attribute.addClass("Tab").update("HTML").event.addListener("click",lib.util.Curry(d.navigate,window,"html")).insert(el.nav.container);
172 el.nav.css = new lib.element("A").attribute.addClass("Tab").update("CSS").event.addListener("click",lib.util.Curry(d.navigate,window,"css")).insert(el.nav.container);
174 el.nav.scripts = new lib.element("A").attribute.addClass("Tab").update("Script").event.addListener("click",lib.util.Curry(d.navigate,window,"scripts")).insert(el.nav.container);
176 el.nav.dom = new lib.element("A").attribute.addClass("Tab").update("DOM").event.addListener("click",lib.util.Curry(d.navigate,internal.targetWindow,"dom")).insert(el.nav.container);
177 el.nav.xhr = new lib.element("A").attribute.addClass("Tab").update("XHR").event.addListener("click",lib.util.Curry(d.navigate,window,"xhr")).insert(el.nav.container);
207 el.right.console.input.event.addListener("keydown",lib.util.Curry(tab,window,el.right.console.input.element));
209 el.right.console.clear = new lib.element("A").attribute.addClass("Button").event.addListener("click",lib.util.Curry(d.clean,window,el.right.console.input)).update("Clear").insert(el.right.console.container);
227 el.right.html.nav.computedStyle = new lib.element("A").attribute.addClass("Tab Selected").event.addListener("click",lib.util.Curry(d.html.navigate,firebug,"computedStyle")).update("Computed Style").insert(el.right.html.nav.container);
228 el.right.html.nav.dom = new lib.element("A").attribute.addClass("Tab").event.addListener("click",lib.util.Curry(d.html.navigate,firebug,"dom")).update("DOM").insert(el.right.html.nav.container);
251 el.right.css.input.event.addListener("keydown",lib.util.Curry(firebug.tab,window,el.right.css.input.element));
253 el.right.css.clear = new lib.element("A").attribute.addClass("Button").event.addListener("click",lib.util.Curry(d.clean,window,el.right.css.input)).update("Clear").insert(el.right.css.container);
300 el.button.str.watch = new lib.element("A").attribute.addClass("Button").event.addListener("click",lib.util.Curry(d.navigate,window,"xhr")).update("Back").insert(el.button.str.container);
359 lib.util.AddEvent(document,"mousemove",listen.mouse)("mousemove",win.resizer.resize)("mouseup",win.resizer.stop)("keydown",listen.keyboard);
369 window.onscroll = lib.util.Curry(win.setVerticalPosition,window,null);
391 lib.util.AddEvent(window, "unload", win.unload);
394 env.height=lib.util.GetViewport().height;
395 lib.util.AddEvent(window, "resize", win.fitToPopup);
398 lib.util.AddEvent(window, "resize", win.refreshSize);
426 var posXY=lib.util.Element.getPosition(firebug.el.nav.options.element);
478 window.opener.firebug.env = firebug.lib.util.Hash.clone(fe);
775 var viewport = lib.util.GetViewport(window);
869 var dim = lib.util.GetViewport();
878 var dim = _dim||lib.util.GetViewport();
1021 var stackAmt = 3, f = arguments.caller, isArray = lib.util.IsArray(f); //function that called trace
1179 link.event.addListener("click",lib.util.Curry(d.dom.print,window,value, subContainer, true));
1204 isArray = lib.util.IsArray(_value);
1205 isHash = lib.util.IsHash(_value);
1441 view = lib.util.Element.getView(item);
1442 link.event.addListener("click", lib.util.Curry(d.html.openHtmlTree, window, item, subContainer, false));
1443 link.event.addListener("mouseover", lib.util.Curry(d.html.highlight, window, item, false));
1444 link.event.addListener("mouseout", lib.util.Curry(d.html.highlight, window, item, true));
1510 var pos = internal.targetWindow.firebug.lib.util.Element.getPosition(_element);
1657 new lib.element("A").event.addListener("click",lib.util.Curry(d.str.open,window,response)).update(" "+response.substring(0,50))
1935 pi.util = {
1940 pi.util.Array.forEach(tmp,function(_item,_index,_source){
1942 _source[_index] = pi.util.Array.clone(_source[_index]);
1948 pi.util.Array.forEach(_array,function(){
1995 object.body = _superClass==pi.base?_prototype:pi.util.Hash.merge(_prototype,_superClass.prototype);
2027 return _object && typeof _object=="object"&&(_object==window||_object instanceof Object)&&!_object.nodeName&&!pi.util.IsArray(_object)
2032 return pi.util.Curry(pi.util.AddEvent,this,_element);
2036 return pi.util.Curry(pi.util.RemoveEvent,this,_element);
2040 if( !pi.util.Element.hasClass(_element,_class) )
2041 pi.util.Element.setClass(_element, pi.util.Element.getClass(_element) + " " + _class );
2047 return pi.util.Array.indexOf(pi.util.Element.getClass(_element).split(" "),_class)>-1;
2050 if( pi.util.Element.hasClass(_element,_class) ){
2051 var names = pi.util.Element.getClass(_element,_class).split(" ");
2052 pi.util.Element.setClass(
2054 pi.util.Array.remove(names,pi.util.Array.indexOf(names,_class)).join(" ")
2067 if(pi.util.Element.hasClass.apply(this,arguments))
2068 pi.util.Element.removeClass.apply(this,arguments);
2070 pi.util.Element.addClass.apply(this,arguments);
2082 return pi.util.Element.addStyle(_element,{ "opacity":_value });
2084 pi.util.Element.addStyle(_element,{ "filter":"alpha(opacity="+_value+")" });
2088 var parent = _element,offsetLeft = document.body.offsetLeft, offsetTop = document.body.offsetTop, view = pi.util.Element.getView(_element);
2110 var view = pi.util.Element.getView(_element);
2124 pi.util.Element.setOpacity(_element,_style[key]);
2135 return pi.util.Element.getOpacity(_element.style);
2154 return pi.util.Element.getOpacity(_element,view);
2162 if( !_undeep&&pi.util.IsArray( _hash[key] ) ){
2163 tmp[key] = pi.util.Array.clone( _hash[key] );
2164 } else if( !_undeep&&pi.util.IsHash( _hash[key] ) ){
2165 tmp[ key ] = pi.util.Hash.clone(_hash[key]);
2175 if (!_undeep&&pi.util.IsArray(_source[key])) {
2176 if(pi.util.IsArray( _hash[key] )){
2180 value = pi.util.Array.clone(_source[key]);
2182 else if (!_undeep&&pi.util.IsHash(_source[key])) {
2183 if (pi.util.IsHash(_hash[key])) {
2184 value = pi.util.Hash.merge(_hash[key], _source[key]);
2186 value = pi.util.Hash.clone( _source[key] );
2218 var _p = pi.util.Hash.clone(_private);
2221 if(pi.util.IsArray( this[ key ] ) ){
2222 this[key] = pi.util.Array.clone( this[key] );
2224 if( pi.util.IsHash(this[key]) ){
2225 this[key] = pi.util.Hash.clone(
2256 _branch[(_branch["get" + title]?"_":"")+"get" + title] = pi.util.Curry(getter,_p,name);
2257 _branch[(_branch["set" + title]?"_":"")+"set" + title] = pi.util.Curry(setter,_p,name);
2260 if (pi.util.IsHash(_p[name])){
2278 if (pi.util.IsHash(_object[name])){
2360 pi.util.Element.addClass(this._parent_.environment.getElement(),arguments[i]);
2369 return pi.util.Element.getClass( this._parent_.environment.getElement() );
2372 return pi.util.Element.hasClass( this._parent_.environment.getElement(), _class );
2375 return pi.util.Element.setClass( this._parent_.environment.getElement(), _value );
2378 pi.util.Element.removeClass( this._parent_.environment.getElement(), _class );
2382 pi.util.Element.toggleClass( this._parent_.environment.getElement(), _class );
2428 return pi.util.Element.getPosition(this.getElement());
2431 return pi.util.Element.getSize( this.getElement() );
2434 pi.util.Element.addStyle(this.getElement(),_styleObject);
2438 return pi.util.Element.getStyle(this.getElement(),_property);
2447 return pi.util.Element.getValue(this.getElement());
2450 return pi.util.Element.getView(this.getElement(),_property);
2455 pi.util.AddEvent(this._parent_.environment.getElement(),_event,_fn,_useCapture);
2459 pi.util.RemoveEvent(this._parent_.environment.getElement(),_event,_fn,_useCapture);
2480 this.environment.getApi().onreadystatechange=pi.util.Curry(this.event.readystatechange,this);
2504 dataUrl += pi.util.String.format("{0}={1}&",key, data[key]);
2507 url += (url.search("\\?")==-1?"?":"&")+pi.util.String.format("{0}",dataUrl);
2540 if(pi.util.Array.indexOf(callback[i].readyState,readyState)>-1){
2563 pi.util.AddEvent(
2567 for(var i=0,len=pi.util.Init.length; i<len; i++){
2568 pi.util.Init[ i ]();
2586 lib.util.Init.push(firebug.init);