javascript - ExtJS undefined function -


i try load store, reason error in google chrome(latest version):

uncaught typeerror: cannot call method 'apply' of undefined ext-all-debug.js:8586 fire ext-all-debug.js:8586 ext.define.continuefireevent ext-all-debug.js:24623 ext.define.fireevent ext-all-debug.js:24601 ext.define.onproxyload ext-all-debug.js:50186 ext.define.processresponse ext-all-debug.js:39168 (anonymous function) ext-all-debug.js:39381 ext.apply.callback ext-all-debug.js:6422 ext.define.handleresponse ext-all-debug.js:18769 (anonymous function) ext-all-debug.js:1815 (anonymous function) 

and 1 in internet explorer 8:

message: 'firefn' null or not object 

while firefox(latest version) seems ignore it.

i have inserted new lines in ext-all-debug.js, line numbers may off 5-10 lines.

this store:

ext.define("fi.store.units.installbasestore", { extend:'ext.data.store', requires: "fi.model.units.installbasemodel",              model: "fi.model.units.installbasemodel",             storeid: 'installbasestore',             pagesize:10,             proxy: {                 type: 'jsonp',                 url: urls.qsurl+"/search",                 limitparam: 'undefined',                 startparam: 'offset',                 pageparam: 'undefined',                 extraparams: {                     searchstring: '*:*',                     index: "fleet",                     role: "admin"                 },                   reader: {                         root: 'results.results',                         totalproperty: 'numfound',                         model: 'fi.model.units.installbasemodel'                     }             },              listeners:{                 beforeload: {                     fn:function(){                         console.log("before load");                         this.getproxy().setreader({                         root: 'results.results',                         totalproperty: 'numfound',                         model: 'fi.model.units.installbasemodel'                     });                         console.log(this.getproxy().getreader());                     }                 }             }         }); 

any ideas?

put proxy in model, , reader this:

... proxy:{   type:'ajax',   url:'...',   reader:{     type:'json',     root:'...'   } } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -