rem: var _416=doc.getElementById(uid); var _417=!!_416; if(_416&&typeof (_416.loggingPane)!="undefined"){ _416.loggingPane.logger=this.logger; _416.loggingPane.buildAndApplyFilter(); return _416.loggingPane; } if(_417){ var _418; while((_418=_416.firstChild)){ _416.removeChild(_418); } }else{ _416=doc.createElement("div"); _416.id=uid; } _416.loggingPane=this; var _419=doc.createElement("input"); var _420=doc.createElement("input"); var _421=doc.createElement("button"); var _422=doc.createElement("button"); var _423=doc.createElement("button"); var _424=doc.createElement("button"); var _425=doc.createElement("div"); var _426=doc.createElement("div"); var _427=uid+"_Listener"; this.colorTable=_413(this.colorTable); var _428=[]; var _429=null; var _430=function(msg){ var _431=msg.level; if(typeof (_431)=="number"){ _431=MochiKit.Logging.LogLevel[_431]; } return _431; }; var _432=function(msg){ 
add: var _434=doc.getElementById(uid); var _435=!!_434; if(_434&&typeof (_434.loggingPane)!="undefined"){ _434.loggingPane.logger=this.logger; _434.loggingPane.buildAndApplyFilter(); return _434.loggingPane; } if(_435){ var _436; while((_436=_434.firstChild)){ _434.removeChild(_436); } }else{ _434=doc.createElement("div"); _434.id=uid; } _434.loggingPane=this; var _437=doc.createElement("input"); var _438=doc.createElement("input"); var _439=doc.createElement("button"); var _440=doc.createElement("button"); var _441=doc.createElement("button"); var _442=doc.createElement("button"); var _443=doc.createElement("div"); var _444=doc.createElement("div"); var _445=uid+"_Listener"; this.colorTable=_431(this.colorTable); var _446=[]; var _447=null; var _448=function(msg){ var _449=msg.level; if(typeof (_449)=="number"){ _449=MochiKit.Logging.LogLevel[_449]; } return _449; }; var _450=function(msg){ 
context: MochiKit.LoggingPane.LoggingPane=function(_409,_410){if(typeof (_410)=="undefined"||_410==null){_410=MochiKit.Logging.logger;}this.logger=_410;var _411=MochiKit.Base.update;var _412=MochiKit.Base.updatetree;var bind=MochiKit.Base.bind;var _413=MochiKit.Base.clone;var win=window;var uid="_MochiKit_LoggingPane";if(typeof (MochiKit.DOM)!="undefined"){win=MochiKit.DOM.currentWindow();}if(!_409){var url=win.location.href.split("?")[0].replace(/[:\/.><&]/g,"_");var name=uid+"_"+url;var nwin=win.open("",name,"dependent,resizable,height=200");if(!nwin){alert("Not able to open debugging window due to pop-up blocking.");return undefined;}nwin.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" "+"\"http://www.w3.org/TR/html4/loose.dtd\">"+"<html><head><title>[MochiKit.LoggingPane]</title></head>"+"<body></body></html>");nwin.document.close();nwin.document.title+=" "+win.document.title;win=nwin;}var doc=win.document;this.doc=doc;var _416=doc.getElementById(uid);var _417=!!_416;if(_416&&typeof (_416.loggingPane)!="undefined"){_416.loggingPane.logger=this.logger;_416.loggingPane.buildAndApplyFilter();return _416.loggingPane;}if(_417){var _418;while((_418=_416.firstChild)){_416.removeChild(_418);}}else{_416=doc.createElement("div");_416.id=uid;}_416.loggingPane=this;var _419=doc.createElement("input");var _420=doc.createElement("input");var _421=doc.createElement("button");var _422=doc.createElement("button");var _423=doc.createElement("button");var _424=doc.createElement("button");var _425=doc.createElement("div");var _426=doc.createElement("div");var _427=uid+"_Listener";this.colorTable=_413(this.colorTable);var _428=[];var _429=null;var _430=function(msg){var _431=msg.level;if(typeof (_431)=="number"){_431=MochiKit.Logging.LogLevel[_431];}return _431;};var _432=function(msg){return msg.info.join(" ");};var _433=bind(function(msg){var _434=_430(msg);var text=_432(msg);var c=this.colorTable[_434];var p=doc.createElement("span");p.className="MochiKit-LogMessage MochiKit-LogLevel-"+_434;p.style.cssText="margin: 0px; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word; wrap-option: emergency; color: "+c;p.appendChild(doc.createTextNode(_434+": "+text));_426.appendChild(p);_426.appendChild(doc.createElement("br"));if(_425.offsetHeight>_425.scrollHeight){_425.scrollTop=0;}else{_425.scrollTop=_425.scrollHeight;}},this);var _436=function(msg){_428[_428.length]=msg;_433(msg);};var _437=function(){var _438,infore;try{_438=new RegExp(_419.value);infore=new RegExp(_420.value);}catch(e){logDebug("Error in filter regex: "+e.message);return null;}return function(msg){return (_438.test(_430(msg))&&infore.test(_432(msg)));};};var _439=function(){while(_426.firstChild){_426.removeChild(_426.firstChild);}};var _440=function(){_428=[];_439();};var _441=bind(function(){if(this.closed){return;}this.closed=true;if(MochiKit.LoggingPane._loggingPane==this){MochiKit.LoggingPane._loggingPane=null;}this.logger.removeListener(_427);_416.loggingPane=null;if(_409){_416.parentNode.removeChild(_416);}else{this.win.close();}},this);var _442=function(){_439();for(var i=0;i<_428.length;i++){var msg=_428[i];if(_429==null||_429(msg)){_433(msg);}}};this.buildAndApplyFilter=function(){_429=_437();_442();this.logger.removeListener(_427);this.logger.addListener(_427,_429,_436);};var _443=bind(function(){_428=this.logger.getMessages();_442();},this);var _444=bind(function(_445){_445=_445||window.event;key=_445.which||_445.keyCode;if(key==13){this.buildAndApplyFilter();}},this);var _446="display: block; left: 0px; bottom: 0px; position: fixed; width: 100%; background-color: white; font: "+this.logFont;if(_409){_446+="; height: 10em; border-top: 2px solid black";}else{_446+="; height: 100%;";}_416.style.cssText=_446;if(!_417){doc.body.appendChild(_416);}_446={"cssText":"width: 33%; display: inline; font: "+this.logFont};_412(_419,{"value":"FATAL|ERROR|WARNING|INFO|DEBUG","onkeypress":_444,"style":_446});_416.appendChild(_419);_412(_420,{"value":".*","onkeypress":_444,"style":_446});_416.appendChild(_420);_446="width: 8%; display:inline; font: "+this.logFont;_421.appendChild(doc.createTextNode("Filter"));_421.onclick=bind("buildAndApplyFilter",this);_421.style.cssText=_446;_416.appendChild(_421);_422.appendChild(doc.createTextNode("Load"));_422.onclick=_443;_422.style.cssText=_446;_416.appendChild(_422);_423.appendChild(doc.createTextNode("Clear"));_423.onclick=_440;_423.style.cssText=_446;_416.appendChild(_423);_424.appendChild(doc.createTextNode("Close"));_424.onclick=_441;_424.style.cssText=_446;_416.appendChild(_424);_425.style.cssText="overflow: auto; width: 100%";_426.style.cssText="width: 100%; height: "+(_409?"8em":"100%");_425.appendChild(_426);_416.appendChild(_425);this.buildAndApplyFilter();_443();if(_409){this.win=undefined;}else{this.win=win;}this.inline=_409;this.closePane=_441;this.closed=false;return this;};
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/8b42fb2ed090da7f1e336726dcb69d2649658e7c/MochiKit.js/clean/trunk/lib/MochiKit.js