PDA

View Full Version : Beta Files and API mismatche



mboiss
9 May 2014, 7:50 AM
I`m trying to access the ViewModel of a parent container within a component.
When I look into the API Doc, I see the following:
http://docs-origin.sencha.com/extjs/5.0.0/apidocs/#!/api/Ext.Component-method-lookupViewModel
(http://docs-origin.sencha.com/extjs/5.0.0/apidocs/#!/api/Ext.Component-method-lookupViewModel)
That`s exactly what I need!

But when I look into the code ...... the function is not there?

Is it because the documentation is out of date or because I don't have the latest version of the code?

If I don't have the latest version of the code, where can I download it?


Thanks

evant
9 May 2014, 12:02 PM
You can see in the top right it comes from Ext.mixin.Bindable:

http://docs-origin.sencha.com/extjs/5.0.0/apidocs/source/Bindable.html#Ext-mixin-Bindable-method-lookupViewModel

mboiss
9 May 2014, 12:12 PM
Yes I know it comes from the Ext.mixin.Bindable.

But when I look into my ext-all-debug.js file the Ext.mixin.Bindable class is the following:

Ext.define('Ext.mixin.Bindable', {
extend: 'Ext.Mixin',


mixinConfig: {
id: 'bindable'
},


bind: function...
unbind: function...
});

So where is the lookupViewModel function?

The source code shown by your API for the Ext.mixin.Bindable class is quite bigger than the one in the ext-all-debug.js file.

So I repeat my question: Is it because the documentation is out of date or because I don't have the latest version of the code? (my file version is : Ext JS 5.0.0.736)

If I don't have the latest beta version of the code, where can I download it?

bob4ever
13 May 2014, 5:35 AM
*push*

mboiss
13 May 2014, 7:29 AM
Anyone in Sencha Ext JS Dev Team can help me with this?

bob4ever
18 May 2014, 11:49 PM
No reaction from the Sencha team? Just say anything to this even a "We dont want to talk about it." >.