I have a simple app with only a few classes.
- controller
--- SearchController.js
- model
--- BookModel.js, SearchModel.js, ResultsModel.js
- store
--- BookStore.js
- view
--- a few views, not important at this point
I have injection enabled in SearchController, ResultsModel and in the views. It works fine except ResultsModel:
Ext.define('RM.model.ResultsModel', {
extend: 'Ext.data.Model',
inject: ['bookStore'],
config: {
bookStore: null
}
update: function (collection) {
this.bookStore.loadData(collection);
}
});
The this.bookStore reference is either
* null (with config section)
* or some weird object that has no loadData method (when I remove the 'config' section)
Can there be anything I am doing wrong or is this simply a bug?
Thanks,
Marcin
--
You received this message because you are subscribed to the Google Groups "Deft JS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deftjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.