煎茶タッチ 2:
これが私の店の定義です
var incidentsJson = loadJson();
Ext.define("App.store.EventsFeed", {
extend: "Ext.data.Store",
requires: ['Ext.data.proxy.JsonP'],
config: {
listeners: {
beforeload: function() {
console.log('before store load');
return true;
},
load: function(store, records) {
console.log(' store loaded', records);
}
},
model: 'App.model.Incident',
autoLoad: true,
data: incidentsJson,
reader: {
type: 'json',
}
}
});
データは読み込まれますがload()
、beforeload()
呼び出されません。何が起こっているのでしょうか?