sudhirj/simply-deferred — pull request #15 by fukamachi (2013-07-31 06:24:35+00:00)
Title: Fixed an API incompatible `resolveWith` & `rejectWith`.

I'm not sure these are bugs, but I've found an incompatibility of `resolveWith` & `rejectWith` with jQuery.Deferred.

* resolveWith & rejectWith take `args` as an Array (See http://api.jquery.com/deferred.resolveWith/)
* resolveWith & rejectWith return a deferred object, not a Window object.

Try the following expressions on both of jQuery.Deferred & simply-deferred 2.2.0:

#### 1. The return value
```javascript
// jQuery.Deferred: Returns a deferred object.
// simply-deferred: Returns a Window object.
$.Deferred().resolveWith();
```

#### 2. The arguments
```javascript
// jQuery.Deferred: Prints ['a', 'b'].
// simply-deferred: Prints [['a', 'b']].
var deferred = $.Deferred();
deferred.promise().done(function() {
console.log(arguments);
});
deferred.resolveWith(deferred, ['a', 'b']);
```