-
override Ext.onReady
override Ext.onReady
trying to override(?) Ext.onReady
myNamespace.onReady=Ext.EventManager.onDocumentReady;
myNamespace.onReady(function () {
//all UI building code
});
Want to execute some fixed custom functions before firing the listener passed.
myNamespace.onReady() will be called from different pages. Want to make sure some fixed code is executed before firing the listener.
Is it possbile to do without modifying any ext source files.
-
got the solution which I looked for.
myNamespace.onReady = function (a) {
var f = function () {
//some custome code
a();
}
Ext.EventManager.onDocumentReady(f);
}
any better ways?
sorry for double post
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us