aerial-framework/core

Bindable Class / property setter

Opened this issue · 0 comments

Bindable Class VO's don't hit the setters for certain data types. For example, Boolean type will return "false" on undefined preventing us from setting the private member to false. See #2 at http://livedocs.adobe.com/flex/3/html/help.html?content=Part4_data_access_1.html

We can fix this by explicitly adding Bindable event in these special cases:

[Bindable("propertyChanged")]
public function get isAdmin():Boolean
{
return _isAdmin;
}

public function set isAdmin(value:Boolean):void
{
_isAdmin = value;
this.dispatchEvent(new Event("propertyChanged"));
}