forum

Home / DeveloperSection / Forums / Deprecated as a property in Sencha Touch?

Deprecated as a property in Sencha Touch?

Jayden Bell 2958 03-Jun-2013
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: [
        'Tasks'
    ],
    stores: [
        'TaskList'
    ],
    views: [
        'MainCarousel',
        'StartScreen',
        'WhatScreen',
        'WhenScreen',
        'Login'
    ],
    refs: [{
        ref: 'mainCarousel',
        selector: 'maincarousel'
    }, {
        ref: 'whenScreen',
        selector: 'whenscreen'
    }, {
        ref: 'whatScreen',
        selector: 'whatscreen'
    }, {
        ref: 'startScreen',
        selector: 'startscreen'
    }, {
        ref: 'login',
        selector: 'login'
    }],
},

Updated on 03-Jun-2013

Can you answer this question?


Answer

1 Answers

Liked By