Deferred: Separate the two paths in jQuery.when
commit356a3bccb0e7468a2c8ce7d8c9c6cd0c5d436b8b
authorRichard Gibson <richard.gibson@gmail.com>
Fri, 15 Apr 2016 03:59:30 +0000 (14 23:59 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Mon, 2 May 2016 16:30:31 +0000 (2 12:30 -0400)
treeb0d1a8401252ac37b7254d4157c2e350a6cbc24b
parent0bd98b1b13872255225358f328bee1f980755483
Deferred: Separate the two paths in jQuery.when

Single- and no-argument calls act like Promise.resolve.
Multi-argument calls act like Promise.all.

Fixes gh-3029
Closes gh-3059
build/tasks/promises_aplus_tests.js
src/deferred.js
test/promises_aplus_adapter_deferred.js [moved from test/promises_aplus_adapter.js with 100% similarity]
test/promises_aplus_adapter_when.js [new file with mode: 0644]
test/unit/deferred.js
test/unit/effects.js