How to declare Global Functions/Variables in Sencha App? | Techbirds
Posted on: December 30, 2013 / Categories: Mobile Applications / Author Name: devashish.techbirds 1. How to declare Global variables and function in sencha App. Step 1 :- Make a class Global.js in /app/util/ Step 2 :- define class Global Ext.define(‘MyApp.util.Global’, { singleton : true, config : { //global vars here myGlobalVar : ‘greatApp’, }, constructor