View Full Version : JSB3 file creation BUG

15 Jul 2011, 2:16 AM

In some cases classes in JSB3 file are not placed have incorrect order.

Ext.define('myapp.DirectProxy', {
extend: 'Ext.data.proxy.Direct',
requires: ['Ext.data.proxy.Direct'],
extractResponseData: function(response){
return Ext.isDefined(response.result) ? response.result.data : response.data;

When creating JSB3 file "Ext/data/proxy/Direct.js" class is placed after "myapp.DirectProxy.js".
And after build file in "all-classes" there is the same problem.

Event when I put Ext.require('Ext.data.proxy.Direct') before Ext.define... there is bug also.
But when I put Ext.syncRequire('Ext.data.proxy.Direct') there is OK.
Would you explain me this?

Thanks in advance!