Page MenuHomeCode

tracer.js
No OneTemporary

tracer.js

/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.lang.aspect.tracer"]){
dojo._hasResource["dojox.lang.aspect.tracer"]=true;
dojo.provide("dojox.lang.aspect.tracer");
(function(){
var _1=dojox.lang.aspect;
var _2=function(_3){
this.method=_3?"group":"log";
if(_3){
this.after=this._after;
}
};
dojo.extend(_2,{before:function(){
var _4=_1.getContext(),_5=_4.joinPoint,_6=Array.prototype.join.call(arguments,", ");
console[this.method](_4.instance,"=>",_5.targetName+"("+_6+")");
},afterReturning:function(_7){
var _8=_1.getContext().joinPoint;
if(typeof _7!="undefined"){
}else{
}
},afterThrowing:function(_9){
},_after:function(_a){
}});
_1.tracer=function(_b){
return new _2(_b);
};
})();
}

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 22, 20:21 (1 d, 47 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26610
Default Alt Text
tracer.js (869 B)

Event Timeline