-
8 Jul 2010 12:34 PM #1
[CLOSED] Model instance get's parent Store as object after inserting
[CLOSED] Model instance get's parent Store as object after inserting
Setting up a simple Store, creating a Model instance and than inserting that instance to the Store:
Results in a Model with the parent Store inside it...Code:this.state.bookActiveChapters = new Ext.data.JsonStore({ autoLoad: false, model: 'chapter', storeId: 'activeChapters', }); var emptyChapter = Ext.ModelMgr.create({ "id": "emptyChapter", "next": 'none', "prev": 'none', "title": "No chapters loaded...", "content": "Load chapters first." }, 'book'); this.state.bookActiveChapters.insert(0, emptyChapter);
model_store.png
-
20 Jul 2010 7:23 AM #2
@ jeroenvduffelen --
What you are seeing in the debugger is a simple reference to the owning store created when the Model instance is inserted into the store.
It is not a copy of the store, but a simple reference."be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-114] Creating new instance of Model results in "dirty" object
By jeroenvduffelen in forum Sencha Touch 1.x: BugsReplies: 8Last Post: 23 Feb 2011, 6:05 PM -
Transfer widget values to model instance - conceptual question
By TheBerliner in forum Ext 3.x: Help & DiscussionReplies: 15Last Post: 21 Nov 2009, 10:51 PM -
Object reference not set to an instance of an object
By johnjalani in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Jan 2009, 8:33 AM


Reply With Quote

