When I try to execute the code below, I get two Uncaught ReferenceError
messages
Ext.define('Example.foo', {
store: _createStore(),
_createStore: function() {
return new Ext.data.JsonStore({...});
}
});
var example = new Example.foo();
The error messages:
Uncaught ReferenceError: _createStore is not defined
Uncaught ReferenceError: Example is not defined
The error still occurs if _createStore
is defined above store
. I'm using ExtJS 4.2.1.883.