---
title: "Deprecated as a property in Sencha Touch?"  
description: "Deprecated as a property in Sencha Touch?"  
author: "Jayden Bell"  
published: 2013-06-03  
updated: 2013-06-03  
canonical: https://www.mindstick.com/forum/972/deprecated-as-a-property-in-sencha-touch  
category: "sencha touch"  
tags: ["sencha touch"]  
reading_time: 2 minutes  

---

# Deprecated as a property in Sencha Touch?

Hi [Developers](https://www.mindstick.com/articles/12875/blunders-you-must-avoid-while-hiring-java-developers-to-get-the-best-fulfilling-your-needs),\
I am using [Sencha Touch](https://www.mindstick.com/interview/23004/define-class-system-of-sencha-touch) 2 to build an [application](https://www.mindstick.com/articles/12824/calculator-application-in-android). When I load the application into a [browser](https://www.mindstick.com/blog/155254/which-is-the-best-internet-browser), I [am getting](https://www.mindstick.com/forum/34179/i-am-getting-error-while-assigning-the-data-to-the-array-list) the following error: [DEPRECATE][[Anonymous](https://www.mindstick.com/interview/1140/what-is-anonymous-class-in-java)] [stores](https://www.mindstick.com/forum/161350/how-does-sqlite-database-stores-tables) is deprecated as a [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) directly on the Ext.app.Controller prototype. Please put it inside the [config](https://www.mindstick.com/forum/55094/what-is-machine-config-in-asp-dot-net) object. I cannot [figure](https://yourviews.mindstick.com/view/87536/what-are-ghosts-jobs-and-how-to-figure-out-them) 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'    }],},
```

## Replies

### Reply by AVADHESH PATEL

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.


---

Original Source: https://www.mindstick.com/forum/972/deprecated-as-a-property-in-sencha-touch

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
