EXTJS - Ext.require and onReady() for inner scripts -


i have app.js file loaded main html file. app.js file upon click of links defined in it, dynamically loads second js file using ext.require(). loading happens ok have defined ext.loader.setpath() etc, second script contains lines such ext.require() import ui libraries , followed onready(), problem onready never fired, , cannot put widget rendering code outside onready(). onready works synchronous loading of scripts?

thanks much

onready ever fire single time application.

if @ docs you'll see ext.require() can take callback function:

ext.require('my.foo.bar', function() {     console.log('do something'); }); 

http://docs.sencha.com/extjs/4.2.0/#!/api/ext-method-require


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -