PDA

View Full Version : [CLOSED] Model.stores undefined



mankz
8 May 2014, 6:04 AM
Seems this is now undefined by default (previously []). Breaking change if this is not accidental, is this documented?

http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.Model-property-stores

evant
8 May 2014, 6:33 AM
The stores property will be deprecated in 5.0.0 and has been marked as such in the upgrade guide (this was post beta). It will be replaced with a more generic collection "joined", since we can have things other than stores be interested in models.

mankz
8 May 2014, 8:01 AM
Is there a compat layer file already? You'd likely benefit from us putting that through our testsuite to see if there's anything missing.

SamuraiJack1
8 May 2014, 10:52 AM
Shouldn't the "interested parties" just "observe" the model instance? Essentially, what is an entry in the "stores" array? Just a different form of listener.