javascript - Ext JS - How to get name of application from within ViewModel? -


my dr. evil application has name defined drevil:

ext.define('drevil.application', {     extend: 'ext.app.application',      name: 'drevil',      stores: [         // todo: add global / shared stores here     ],      launch: function () {         // todo - launch application     } }); 

in view model, there way retrieve name? hoping ext.app.name pull comes empty. i've been iterating through properties of ext, ext.app etc. , can't seem find it.

this trivial it's looking me right in face, did google n variations of extjs name of application within view model nothing relevant coming up.

i'm trying convince company purchase eclipse plugin extjs! answer question in second.

it's not obvious @ if start out assuming don't know anything.

this generic code want:

var name = ext.app.application.instance.getname();


Comments