-
20 May 2010 10:50 AM #1
Unanswered: Ext.onReady function 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:
then can I do something likeCode:var x = new function(){ //do stuff } Ext.onReady(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 queueCode:if(some condition){ Ext.onReadyRemove(x); }
-
20 May 2010 2:14 PM #2Sencha - Services Team
- Join Date
- Aug 2007
- Location
- Long Island, NY USA
- Posts
- 5,956
- Vote Rating
- 8
- Answers
- 9
@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.
-
20 May 2010 6:20 PM #3
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
-
How to change/update gridpanel from function outside Ext.onReady function?
By saadkhan in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 20 Feb 2010, 11:12 AM -
Getting Error: Ext.onReady is not a function
By rfresh in forum Ext 2.x: Help & DiscussionReplies: 18Last Post: 20 Jul 2008, 12:05 PM -
Ext.onReady function
By mattpowell in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 28 Apr 2008, 9:49 AM -
Ext.onReady not function?
By RyanZec in forum Ext 1.x: Help & DiscussionReplies: 19Last Post: 23 Oct 2007, 4:31 AM -
How to Ext.onReady(function()
By flatburger in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 18 Jul 2007, 7:53 AM


Reply With Quote

