PDA

View Full Version : [FIXED] Unreflected Touch API changes in Designer (v309)



hschaefer123
8 Mar 2012, 6:41 AM
There are several problems with API changes inside Event Listeners and generated method stubs.

Example
Ext.DataView.nestedList

API Docu
leafitemtap (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Ext.dataview.NestedList-event-leafitemtap)( Ext.dataview.NestedList (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Ext.dataview.NestedList) this, Ext.List (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Ext.dataview.List) list, Number (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Number) index, Ext.dom.Element (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Ext.dom.Element) target, Ext.data.Record (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Ext.data.Model) record, Ext.event.Event (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Ext.event.Event) e, Object (http://wild7/ext/sencha-touch-2.0.0-commercial/docs/#%21/api/Object) eOpts )

Generated Stub
onLaunchApp: function(nestedlist, subList, subIdx, item, e, options) {
// dirty workaround till fix
var record = e;
}

I think this is not the only place where such things took place! ;-)

Maybe you can implement API refactoring workflow to catch such issues on further API changes.

Cheers Holger

hschaefer123
8 Mar 2012, 12:48 PM
Workround was included!
There is a shift in function params.

e = record
options = event
No change to access eOpts (maybe there is a arguments reflection in js)

aconran
9 Mar 2012, 10:07 AM
We've updated the definitions and it will be in the next build > 311.