-
24 May 2012 7:39 AM #21
There is no public release date available for these version at this time.
Regards,
Scott.
-
24 May 2012 10:20 PM #22Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,494
- Vote Rating
- 57
Scott, any thoughts on getting this fixed? http://www.sencha.com/forum/showthre...939#post811939
No CRUD can be be done with any Store or TreeStore until fixed...
-
24 May 2012 10:55 PM #23
Hi,
Ext.util.observable is broken. I'll file an official bug report soon.
Ext.util.Observable.js/prepareClass seems to be broken, the instance variable won't have property hasListeners, created. It only has the capitalized varible, HasListener, so addListener code, and many other event handling code parts related to Ext.util.Observable fails.
-
24 May 2012 11:35 PM #24
Are you mixing it into your own custom class? If so, be sure to call the observable constructor.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
24 May 2012 11:59 PM #25
Hi,
Yes, I've mixed it in to a custom class created by me. If I remember right, calling the Obervable's constructor was not mandatory in previous versions, was it?
-
25 May 2012 12:05 AM #26
It was, it's just that by chance it happened to work ok without it. You should call the mixin constructor.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
25 May 2012 12:13 AM #27
Ok, it works fine when calling the constructor. It was just a bit misleading, that it was never mentioned in any of the examples I've seen previously, that if the Observable is mixed in, it's constructor must be called. Thanks for opening my eyes!
Maybe it would be wise to mention it in the documentation also.
-
27 May 2012 1:13 PM #28
I don't know whether it's already been reported or not, but the getter and setter functions of the model associations are not generated:
(from documentation)
Code:Ext.define('Address', { extend: 'Ext.data.Model', fields: [{ name: 'id', type: 'int' }, { name: 'number', type: 'string' }, { name: 'street', type: 'string' }, { name: 'city', type: 'string' }, { name: 'zip', type: 'string' }] }); Ext.define('Person', { extend: 'Ext.data.Model', fields: [{ name: 'id', type: 'int' }, { name: 'name', type: 'string' }, { name: 'address_id', type: 'int' }], associations: { type: 'hasOne', model: 'Address' } }); var person = newPerson({ id: 100, address_id: 20, name: 'John Smith' }); // There's no person.getAddress method
-
27 May 2012 3:29 PM #29
Assocations is expected to be an array, it's a typo in the docs. I'll fix it up.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
27 May 2012 4:12 PM #30


Reply With Quote