Sha256: 521e09a35acf1de95f1785fe3423a4ffa99a9b9ed08995cff58aab076c344dce

Contents?: true

Size: 400 Bytes

Versions: 7

Compression:

Stored size: 400 Bytes

Contents

/*
---

name: Class.Binds

description: Alternate Class.Binds Implementation

authors: Scott Kyle (@appden), Christoph Pojer (@cpojer)

license: MIT-style license.

requires: [Core/Class, Core/Function]

provides: Class.Binds

...
*/

Class.Binds = new Class({

	$bound: {},

	bound: function(name){
		return this.$bound[name] ? this.$bound[name] : this.$bound[name] = this[name].bind(this);
	}

});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lsd_rails-0.1.6 Packages/mootools-history/Demos/mootools-class-extras.js
lsd_rails-0.1.5 Packages/mootools-history/Demos/mootools-class-extras.js
lsd_rails-0.1.4 Packages/mootools-history/Demos/mootools-class-extras.js
lsd_rails-0.1.3 Packages/mootools-history/Demos/mootools-class-extras.js
lsd_rails-0.1.2 Packages/mootools-history/Demos/mootools-class-extras.js
lsd_rails-0.1.1 Packages/mootools-history/Demos/mootools-class-extras.js
lsd_rails-0.1 Packages/mootools-history/Demos/mootools-class-extras.js