On May 26, 2006, at 2:03 AM, Johan Sundström wrote:

>
>> I then tried:
>> doSimpleXMLHttpRequest("pathtoxml").addCallback( MyA.cleanXML );
>
> MyA.cleanXML won't carry MyA along as the this object. Try bind(
> MyA.cleanXML, MyA ) instead of plain MyA.cleanXML. (Untested; I hope I
> got the parameter order right there.)

That is correct.

If bindMethods(this) is used in the constructor of ClassA, then the  
bind call is unnecessary since it's already done when the object is  
constructed.

-bob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to