phpldapadmin/application/media/js/dojo-release-1.7.2/dojox/lang/aspect/counter.js

21 lines
367 B
JavaScript
Raw Normal View History

2012-06-19 02:07:43 +00:00
//>>built
define(["dijit","dojo","dojox"],function(_1,_2,_3){
_2.provide("dojox.lang.aspect.counter");
(function(){
var _4=_3.lang.aspect;
var _5=function(){
this.reset();
};
_2.extend(_5,{before:function(){
++this.calls;
},afterThrowing:function(){
++this.errors;
},reset:function(){
this.calls=this.errors=0;
}});
_4.counter=function(){
return new _5;
};
})();
});