Sha256: 5906cf42dfa7a85c83669efcf7451c669ce6ba98dac6bbfd3c33f0635e5a71cc

Contents?: true

Size: 734 Bytes

Versions: 15

Compression:

Stored size: 734 Bytes

Contents

JS.Decorator=new JS.Class('Decorator',{initialize:function(a,c){var b=new JS.Class(),f={},e,d;for(e in a.prototype){d=a.prototype[e];if(JS.isFn(d)&&d!==a)d=this.klass.delegate(e);f[e]=d}b.include(new JS.Module(f),false);b.include(this.klass.InstanceMethods,false);b.include(c,true);return b},extend:{delegate:function(a){return function(){return this.component[a].apply(this.component,arguments)}},InstanceMethods:new JS.Module({initialize:function(a){this.component=a;this.klass=this.constructor=a.klass;var c,b;for(c in a){if(this[c])continue;b=a[c];if(JS.isFn(b))b=JS.Decorator.delegate(c);this[c]=b}},extend:function(a){this.component.extend(a);var c,b;for(c in a){b=a[c];if(JS.isFn(b))b=JS.Decorator.delegate(c);this[c]=b}}})}});

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
spontaneous-0.2.0.beta1 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.2.0.alpha7 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.2.0.alpha6 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.2.0.alpha5 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.2.0.alpha4 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.2.0.alpha3 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.2.0.alpha2 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.2.0.alpha1 application/js/vendor/JS.Class-2.1.5/min/decorator.js
spontaneous-0.1.0.alpha1 application/js/vendor/JS.Class-2.1.5/min/decorator.js
acts_as_dashboard-0.4.1 generators/dashboard/templates/js.class-2.1.4/min/decorator.js
acts_as_dashboard-0.4.0 generators/dashboard/templates/js.class-2.1.4/min/decorator.js
acts_as_dashboard-0.3.3 generators/dashboard/templates/js.class-2.1.4/min/decorator.js
acts_as_dashboard-0.3.2 generators/dashboard/templates/js.class-2.1.4/min/decorator.js
acts_as_dashboard-0.3.0 generators/dashboard/templates/js.class-2.1.4/min/decorator.js
acts_as_dashboard-0.1.0 generators/dashboard/templates/js.class-2.1.4/min/decorator.js