Bug Tracker

Modify

Ticket #11172 (closed bug: duplicate)

Opened 16 months ago

Last modified 14 months ago

Wouldn't it be great if when() could accept an array?

Reported by: chrispaterson82@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

Right now if I have a list (array) of Deferreds I have to call

.when.apply(this, myArray).always(/* do something */);

it would be nice if the when function first checked for an array. So you could pass:

.when(myArray).always(/* do something */);

Change History

comment:1 Changed 16 months ago by rwaldron

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 16 months ago by rwaldron

Duplicate of #10367.

comment:3 Changed 16 months ago by rwaldron

  • Status changed from closed to reopened
  • Resolution duplicate deleted

comment:4 Changed 16 months ago by rwaldron

  • Status changed from reopened to closed
  • Resolution set to duplicate

comment:5 Changed 16 months ago by rwaldron

Duplicate of #8256.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.