Checkbox widget - ReadOnly property

Hi,

I'm working with boolean property widget. I haed to check it's in readonly state. The code is like:

if (checkboxWidget.get("readOnly")) {
   // Do something
}

The condition is always true even if the checkbox is in active state. I checked the widget implementation: "epi/shell/widget/CheckBox" 

There is:

_getReadOnlyAttr: function () {
            return this.checkbox.set("readOnly");
},

The set method returns object - never false value. I wonder if there should be read instead of set or this is a kind of trick and I should not use "readOnly" property that way.

For this moment I have a workaround: 

if (checkboxWidget.checkbox.get("readOnly")) {
   // Do something
}
#120926 Apr 28, 2015 11:03