This plugin exposes two instance properties:

Example
var MyClass = comb.define(comb.plugins.MethodMissing, {
    instance : {

        constructor : function(){
             this._attributes = {};
        },

        getMissingProperty : function(name){
            return this._attributes[name];
        },

        setMissingProperty : function(name, value){
            return this._attributes[name] = value;
        }
    }
});
            

Constructor

Defined plugins/MethodMissing.js

getMissingProperty Function Public


Defined plugins/MethodMissing.js

Method called to retrieve a property that is not found on the current instance of the object

Arguments Source
function (name){
   //return defaults
   return undefined;
           
}
    

setMissingProperty Function Public


Defined plugins/MethodMissing.js

Method called to set a property that is not found on the current instance of the object

Arguments Source
function (name,value){
   //return defaults
   this[name] = value;
   return value;
           
}
    

License

MIT LICENSE

Meta


Code: git clone git://github.com/c2fo/comb-proxy.git