Sha256: 9d1c595c24bba8fa8534081b861fd2554da8e8ef7ea4ff54e355cd5c629e217a
Contents?: true
Size: 615 Bytes
Versions: 6
Compression:
Stored size: 615 Bytes
Contents
// wrapped by build app define("dojox/lang/aspect/counter", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ dojo.provide("dojox.lang.aspect.counter"); (function(){ var aop = dojox.lang.aspect; var Counter = function(){ this.reset(); }; dojo.extend(Counter, { before: function(/*arguments*/){ ++this.calls; }, afterThrowing: function(/*excp*/){ ++this.errors; }, reset: function(){ this.calls = this.errors = 0; } }); aop.counter = function(){ // summary: // Returns an object, which can be used to count calls to methods. return new Counter; // Object }; })(); });
Version data entries
6 entries across 6 versions & 2 rubygems