-
30 Sep 2010 6:42 PM #1
Direct method callback scope
Direct method callback scope
I searched in the documentation and didn't see any reference... but in the code I found that can be done this way
the common way is:
but can also be done this way:Code:Action.Method({params},callbackFn);
if it's of use to anyoneCode:Action.Method({params},{fn: callbackFn, scope:this});
Cheers
Israel FigueroaLast edited by kodomo; 30 Sep 2010 at 7:45 PM. Reason: fix
-
20 Oct 2010 5:48 AM #2
I tried this, but doesn't work with Ext 3.3.0. I traced it and found out, that in all 3.x.x versions we have to use 'callback' instead of 'fn':
Greetings,Code:Action.Method({params},{callback: callbackFn, scope:this});
Wolfgang
-
20 Oct 2010 5:57 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Or you could use:
Code:Action.Method({params},callback.createDelegate(this));
Similar Threads
-
[INVALID-373] Animation callback scope set to config object instead of config.scope
By yui-ext is cool in forum Sencha Touch 1.x: BugsReplies: 4Last Post: 28 Oct 2010, 1:56 PM -
Direct Method not firing callback.
By colin.jones in forum Ext.DirectReplies: 1Last Post: 2 Oct 2009, 3:08 AM -
[2.2.1/2.3.0] HttpProxy loosing callback scope
By smudgeface in forum Ext 2.x: BugsReplies: 3Last Post: 13 Aug 2009, 4:09 AM -
callback function and scope
By dddu88 in forum Ext 2.x: Help & DiscussionReplies: 10Last Post: 18 Nov 2007, 11:11 AM -
How to keep scope in selectPath callback?
By mherger in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 8 Aug 2007, 11:33 PM


Reply With Quote