qooxdooフレームワークを使用する場合、クラス内:(.xmlファイルではactiveRowはobject_iterateとして定義されます:)
<object_literal name="activeRow" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
<property name="nullable" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Boolean">
</property>
<property name="check" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="String">
</property>
</object_literal>
これは機能します:
properties: {
activeRow: {
nullable: true,
check: "Object"
},
...
this.setActiveRow(123);
var x = this.getActiveRow();
これは動作しません:
properties: {
activeRow: {
nullable: true,
check: "Object",
init: {test1: null, test2: null}
},
...
this.setActiveRow({test1: 123, test2: 123 });
var y = this.getActiveRow().test1;
構文のどの部分が間違っているか誰かが知っていますか?
前もって感謝します!
以下の議論を含む追加:
alert(typeof this.getActiveRow); 戻り値:関数
alert(this.getActiveRow);
戻り値:
function(){
return qx.core.Property.executeOptimizedGetter(this, bI, name, "get");
}