Friends I need help, afrer updating to ember 2.X, my infinite scroll stopped working. On reaching page end, I query store to get new records
load_more: function(){
var self = this;
this.get("store").query("actor",{pg: 1}}).then(function(records) {
self.get('model').addObjects(records); // this throw excepton
}
}
this was working perfectlly but now self.get('model').addObjects(records); throw excption "Uncaught TypeError: internalModel.getRecord is not a function" in record-array.js at line 86 "return internalModel && internalModel.getRecord()". I tried using self.get('model').pushObjects(records) but it also give same error, please help
Aucun commentaire:
Enregistrer un commentaire