7 Jan 2011 10:52 AM #1
[CLOSED] JsonStore is incorrectly done
Trying to extend JsonStore, I landed into an infinite loop of nowhere. So I went and checked it's source to find to explore the issue.
The JsonStore class creates a reader by passing the config variable to it directly without adding any extended values. So if the extended class has properties required by the JsonReader, it would never get them, unless the config variable has the values passed as constructor values.
The solution is to update the config variable with Ext.apply before sending that to JsonReader.
8 Jan 2011 12:10 AM #2
- Join Date
- Mar 2007
- The Netherlands
- Vote Rating
No, the solution is to extend the constructor to pass the JsonReader options instead of adding the options to the prototype.
By Ranma13 in forum Ext 3.x: BugsReplies: 8Last Post: 14 Nov 2011, 8:00 AM
By Jul in forum Ext 3.x: BugsReplies: 4Last Post: 15 Feb 2010, 5:49 PM
By marcing in forum Ext 3.x: BugsReplies: 5Last Post: 20 Nov 2009, 11:36 AM
By chris-mac in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 27 Feb 2009, 6:07 AM
By SimonDeNooij in forum Ext 2.x: BugsReplies: 1Last Post: 4 Jul 2008, 4:14 AM