my8bird/nodejs-twisted-deferreds — Issue #2: If some Deferred using as value of second Deferred - not need call callback of second Deferred
Author: Gvozd
Created: 2012-01-22 00:32:47+00:00
State: open

Hello.
Sorry for my very bad english.

I have a code like this:

```javascript
var twisted = require('twisted-deferred');
var a = new twisted.Deferred();
a.addCallbacks(function(a) {
console.log('a = ' + a);
});
var b = new twisted.Deferred();
b.addCallbacks(function(b) {
console.log('b = ' + b);
});
console.log('start');
a.callback(b);
console.log('process');
b.callback(123)
console.log('end');
```

And I expect as result this:

```
start
process
b = 123
a = 123
end
```
But keep this:

```
start
a = [object Object]
process
b = 123
end
```

In other words, if i set value to Deferred *a* as another Deferred *b*, not need call callback for *a*, until b is unknown

I believe that tцisted and works, but I could be wrong