1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    81
    Vote Rating
    0
    alupuli is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha User
    Join Date
    Sep 2009
    Posts
    81
    Vote Rating
    0
    alupuli is on a distinguished road

      0  

    Default


    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