dgofman / flexdoor

Automatically exported from code.google.com/p/flexdoor
0 stars 0 forks source link

Potential Bug #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
this.blendMode = function(){ /* getter and setter */
        return this.property("blendMode");
    };
in UIComponent is labeled as a getter and setter but does not have an arguments 
parameter. 

Original issue reported on code.google.com by brian.m....@gmail.com on 1 Jul 2012 at 6:52

GoogleCodeExporter commented 9 years ago
if you are using this.blendMode(true) it will be setter otherwise 
alert(this.blendMode()) returns value of your component

FlexDoor supporting 3 declarations; the same API I can declare like this:

this.setBlendMode = function(value){
    this.setter("blendMode", value);
};

this.getBlendMode = function(){
    return this.getter("blendMode");
};

Or using property

this.blendMode = function(){ /* getter and setter */
    return this.property("blendMode");
};

Original comment by dgofman@gmail.com on 14 Aug 2012 at 8:01