dstore/Memory ストアが割り当てられた Dojo dgrid があります。
_instance = new Memory({
data: {
identifier:'monthNumeric',
items: []
}
});
グリッドのヘッダーをクリックすると、並べ替えの矢印が変化しますが、グリッドの内容は変化しません。
コードをたどったところ、並べ替えオブジェクトが作成されていることがわかりました。次に、_StoreMixins.js からこのコードを呼び出します。
_applySort: function () {
if (this.collection) {
this.set('collection', this.collection);
}
else if (this.store) {
console.debug('_StoreMixin found store property but not collection; ' +
'this is often the sign of a mistake during migration from 0.3 to 0.4');
}
},
コレクションの設定はソート機能を作成しているように見えますが、実際には実行されません。
これはどのように機能するはずですか?
(それが問題かどうかはわかりませんが、同じストアが DStoreAdapter にラップされた Dojo チャートでも使用されています。しかし、ここではそのように使用されていません)