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

Version Path
dojox-rails-0.11.0 vendor/assets/javascripts/lang/aspect/counter.js.uncompressed.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/lang/aspect/counter.js.uncompressed.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/lang/aspect/counter.js.uncompressed.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/lang/aspect/counter.js.uncompressed.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/lang/aspect/counter.js.uncompressed.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/lang/aspect/counter.js.uncompressed.js