Jeff, I think you're talking about different implementation: 
https://npmjs.org/package/Deferred it's still at v0.1.1 and in fact it 
resembles jQuery's Deferred. It was published later on npm with same name 
but uppercased (Today npm wouldn't allow that ;)

For Deferred (one that opened this topic) changes are carefully described 
in https://github.com/medikoo/deferred/blob/master/CHANGES v0.1 -> v0.6 
might be a long read ;)

Answering your questions:

On Tuesday, October 2, 2012 6:01:03 PM UTC+2, Jeff Barczewski wrote:
>
>
>  - .promise() becomes .promise
>
 

Exactly .promise returns something conceptually same as .promise() in 
jQuery's version

>  - Deferred.when()  - I will have to create my own, right?

There's no when in this Deferred implementation. Same can be achieved with:

deferred(promiseOrValue).then(onsuccess, onerror);

 

> Anything else that you remember which will need to change? (I know this 
> was a long time ago when you changed it so not a big deal if you don't 
> remember)
>
>
'fail', 'always' and 'done' can be achieved with 
promise.aside: https://github.com/medikoo/deferred#aside

In general Deferred (v0.6) implementation provides solutions to many other 
use cases, so it has much more to offer. jQuery's implementation is very 
basic, it evolved on client-side where asynchronous programming is not as 
complex as in Node.js

Cheers!
Mariusz

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to