Michael Ochs wrote: > Hi, > > I have had a problem with the rpc call and the this reference in the > callback handler some weeks ago. I solved this by declaring var that = > this; before the handler. But now I have a class-member-function > called "callback(result, exc)" and I have to use the this-reference in > this function, which, of course doesn't work because 'this' isn't > pointing to the class. I can't use that = this; as well, because > callback is a member-function of the class that makes the rpc. >
I don't grok it. So you have a class that makes RPC calls. This class has a member function 'callback()'. In the code of this member function you are using the 'this' key word. No problem so far. It all depends on how you call 'callback()', and in which context. So how do you do that?! T. > Does anyone have a solution for that? > > Thanks for your help, > Michael > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
