Sha256: f8f494877482c68c2f9f56c3e709218ed3bab7a10edf0b533cf102488e60f537
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
// wrapped by build app define("dojox/lang/oo/Decorator", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ dojo.provide("dojox.lang.oo.Decorator"); (function(){ var oo = dojox.lang.oo, D = oo.Decorator = function(value, decorator){ // summary: // The base class for all decorators. // description: // This object holds an original function or another decorator // object, and implements a special mixin algorithm to be used // by dojox.lang.oo.mixin. // value: Object // a payload to be processed by the decorator. // decorator: Function|Object // a function to handle the custom assignment, or an object with exec() // method. The signature is: // decorator(/*String*/ name, /*Function*/ newValue, /*Function*/ oldValue). this.value = value; this.decorator = typeof decorator == "object" ? function(){ return decorator.exec.apply(decorator, arguments); } : decorator; }; oo.makeDecorator = function(decorator){ // summary: // creates new custom decorator creator // decorator: Function|Object // a function to handle the custom assignment, // or an object with exec() method // returns: Function // new decorator constructor return function(value){ return new D(value, decorator); }; }; })(); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dojox-rails-0.11.0 | vendor/assets/javascripts/lang/oo/Decorator.js.uncompressed.js |