PDA

View Full Version : [FIXED] Documentation bug in Ext.data.Store.getData(): wrong return type



agarberi
22 Sep 2014, 2:57 AM
Ext version tested:

Ext 5.0.1.1255

The documentation of Ext.data.Store.getData() (http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext.data.Store-method-getData) report that it returns an Array of Object or of Ext.data.Model, while at runtime you get an Ext.util.Collection of Ext.data.Model.

I don't know if the documention of Ext.data.Store.setData() (http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext.data.Store-method-setData) has the same problem with the parameter or not (may be that the setData()/applyData() methods really need an Array).

Gary Schlosberg
24 Sep 2014, 10:45 AM
Thanks for the report! I have opened a Documentation bug in our bug tracker.