Page MenuHomeCode

counter.js
No OneTemporary

counter.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.counter"]){
dojo._hasResource["dojox.lang.aspect.counter"]=true;
dojo.provide("dojox.lang.aspect.counter");
(function(){
var _1=dojox.lang.aspect;
var _2=function(){
this.reset();
};
dojo.extend(_2,{before:function(){
++this.calls;
},afterThrowing:function(){
++this.errors;
},reset:function(){
this.calls=this.errors=0;
}});
_1.counter=function(){
return new _2;
};
})();
}

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 26, 11:40 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26763
Default Alt Text
counter.js (613 B)

Event Timeline