-
2 Feb 2012 11:45 AM #11
Can't confirm this on 4.1b2, I used the following test:
The log() ends up being fired.Code:Ext.onReady(function() { var store = Ext.create('Ext.data.Store', { fields: ['a'], proxy: { type: 'ajax', url: 'data.json', reader: { type: 'json', root: 'data' }, listeners: { exception: function(){ console.log('fail'); } } } }); store.load(); }); // Server data { "success": false, "data": [] }Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
3 Feb 2012 2:01 AM #12
Hi,
Don't use root: data on the reader on your test, try with root: data.someProperty and then have the server return a result with success: false and data: null.
That's the problem I'm having on my side.
Regards,
Joao Maia
-
3 Feb 2012 2:46 AM #13
I forgot to mention, I'm using 4.0.7 and not 4.1 b2.
Regards,
Joao Maia
-
6 Feb 2012 3:46 AM #14
Any feedback on this issue ? I couldn't help noticing that it is marked [CLOSED] even though I have provided some more information about it.
Regards,
jm
-
6 Feb 2012 10:37 PM #15
I tried it with the extra information, the bug isn't present on B2:
As such, leaving this as closed.Code:Ext.onReady(function() { var store = Ext.create('Ext.data.Store', { fields: ['a'], proxy: { type: 'ajax', url: 'data.json', reader: { type: 'json', root: 'data.foo' }, listeners: { exception: function() { console.log('fail'); } } } }); store.load(); }); // { "success": false, "data": null }Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
7 Feb 2012 2:04 AM #16
Ok, I'll wait for the official release of 4.1 then.
Thanks,
jm
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote