1. #1
    Ext User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    navajo is on a distinguished road

      0  

    Question Unanswered: Ext.onReady function question

    Hello, is it possible to remove a function that was specified for Ext.onReady? For example if I had something like:

    Code:
    var x = new function(){
      //do stuff
    }
    
    Ext.onReady(x);
    then can I do something like

    Code:
    if(some condition){
      Ext.onReadyRemove(x);
    }
    And I don't have control over function x, so I can't do anything inside of it to prevent it from executing. I have to remove it from the onReady queue

  2. #2
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,965
    Vote Rating
    12
    Answers
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Question

    @navajo--
    How about:

    Code:
    var x =  function(){
       if(some condition){ return ; }
      //do stuff
    }
    
    Ext.onReady(x);
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  3. #3
    Ext User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    navajo is on a distinguished road

      0  

    Default

    Yeah if I could do that I would, but that's why i said I don't have any control over x. It's being defined by some other code that I can't modify.

Similar Threads

  1. How to change/update gridpanel from function outside Ext.onReady function?
    By saadkhan in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 20 Feb 2010, 11:12 AM
  2. Getting Error: Ext.onReady is not a function
    By rfresh in forum Ext 2.x: Help & Discussion
    Replies: 18
    Last Post: 20 Jul 2008, 12:05 PM
  3. Ext.onReady function
    By mattpowell in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 28 Apr 2008, 9:49 AM
  4. Ext.onReady not function?
    By RyanZec in forum Ext 1.x: Help & Discussion
    Replies: 19
    Last Post: 23 Oct 2007, 4:31 AM
  5. How to Ext.onReady(function()
    By flatburger in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 18 Jul 2007, 7:53 AM

Thread Participants: 1