Home > DeveloperSection > Forums > Deprecated as a property in Sencha Touch?
Jayden Bell
Jayden Bell

Total Post:105

Posted on    June-03-2013 2:40 AM

 Sencha Touch Sencha Touch 

 1 Reply(s)
 1672  View(s)
Rate this:
Hi Developers,

I am using Sencha Touch 2 to build an application. When I load the application into a browser, I am getting the following error: [DEPRECATE][Anonymous] stores is deprecated as a property directly on the Ext.app.Controller prototype. Please put it inside the config object. I cannot figure out why this error is occurring. Any help? Thanks! The first part of my MainController code is as follows:

config: {
    models: [

    stores: [

    views: [

    refs: [{
        ref: 'mainCarousel',
        selector: 'maincarousel'
    }, {
        ref: 'whenScreen',
        selector: 'whenscreen'
    }, {
        ref: 'whatScreen',
        selector: 'whatscreen'
    }, {
        ref: 'startScreen',
        selector: 'startscreen'
    }, {
        ref: 'login',
        selector: 'login'


Total Post:604

Posted on    June-03-2013 9:12 AM

Hi Jayden,

Move stores[] array inside config object inside your controller definition:

config: {
   stores: [..]

As for defining refs inside controller check out Sencha doc on how to define refs.

Don't want to miss updates? Please click the below button!

Follow MindStick