REQUIRED INFORMATION


Ext version tested:
  • Sencha Touch 2.1rc2

Browser versions tested against:
  • N/A

DOCTYPE tested against:
  • N/A

Description:
  • I have a custom proxy, which uses a custom reader. In my store, I use this custom proxy, and configure some values for the custom reader. This was working before 2.1rc1. But now, it fails unless I add a "type: 'myreader'" to the store's "reader" config. That seems a little redundant, since myproxy already defaults to using myreader.

Steps to reproduce the problem:
  • Create an app that uses the code below, and run "sencha app build production"

The result that was expected:
  • Builds successfully

The result that occurs instead:
Code:
[INFO ]		Compiling app.js and dependencies
[INFO ]		Processing classPath entry : /project/sencha-compile-temp-dir
[INFO ]		Processing classPath entry : /project/touch/src
[INFO ]		Processing classPath entry : /project/app.js
[INFO ]		Processing classPath entry : /project/MyAppDir
[INFO ]		Processing classPath entry : /project/lib
[WARN ]		[ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => }, function() { ] :: ( /project/touch/src/app/Controller.js => 625 : 1 )
[ERROR]		def was null
[ERROR]		failed to find meta class definition for name reader.null
[ERROR]		Exception running app build : JavaException: com.sencha.exceptions.BasicException: null
[ERROR]		javax.script.ScriptException: sun.org.mozilla.javascript.internal.JavaScriptException: [object Error] (<Unknown source>#709) in <Unknown source> at line number 709
Test Case:

Code:
Ext.define('MyProxy', {
	extend: 'Ext.data.proxy.Ajax',
	requires: ['MyReader'],
	alias: 'proxy.myproxy',
	config: {
		reader: {
			type: 'myreader'
		}
	}
});

Ext.define('MyStore', {
	extend: 'Ext.data.Store',
	requires: ['MyProxy'],
	config: {
		proxy: {
			type: 'myproxy',
			reader: {
				rootProperty: 'myRoot'
			}
		}
	}
});


HELPFUL INFORMATION


Screenshot or Video:
  • N/A

See this URL for live test case: N/A


Debugging already done:
  • none

Possible fix:
  • It works if you add "type: 'myreader'" to the reader config.

Additional CSS used:
  • only default ext-all.css

Operating System:
  • Mac OS 10.8.1