$("<button>")
.addClass("radio")
.addClass(this._getValue(lbl) ? "checked" : "")
.attr(this._getDisableProp(lbl) ? ("disabled", "disabled") : "")
.prop(this._getDisableProp(lbl) ? ("disabled", true) : ("disabled", false));
上記のコードでは、関数が true を返す場合にのみattrandを追加しようとしています。prop私はそれを同様にaddClass行いましたが、それは機能しませんでしattrたprop。
回避策はありますか?