[EMAIL PROTECTED] a écrit :

> You're right, of course I should have supplied a runnable example.
> Here goes, it's not beautiful, but it illustrates my problem:
>
> [snip]
>                       /*var serverMsgCallback = function(result)  {
>                               alert(objectToString(result));
>                               return maybeDeferred(result);
                                             ^^^^^^^^^
Your problem is here: maybeDeferred works with a function, not a value.
Here you just have to make 'return result' to pass your result to
following callback.

Note: if you want to pass value using a Deferred (not useful in this
case), you'll have to use 'succeed(result)'.

-- 
Thomas


--~--~---------~--~----~------------~-------~--~----~
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