ExtJs namespace alias
Is there any way to give a namespace an alias?
ergo i want to do
Ext.ns ( 'somereallylongname' );
and then alias it to 'srln' and be able to do
Ext.ns ( 'srln.panel');
and create it by
Ext.create('somereallylongname.panel');
开发者_运维百科Example is a bit contrived, but meh.
Try
Ext.ns ( 'somereallylongname' );
var srln = somereallylongname;
added
make sure srln
is in global scope
精彩评论