Ticket #2532215 (closed enhancement)

Reporter


John Lindal
Opened: 04/27/12
Last modified: 08/1/12
Status: closed
Type: enhancement
Resolution: fixed

Owner


Dav Glass
Target Release: 3.6.0
Priority: P3 (normal)
Summary: Y.Parallel should push arguments if fn is not specified
Description:

The way it is now, if I want to save the results passed to the callback, I have to pass a function which echoes its arguments. There is great value in providing the option to transform the results
before pushing them onto the result stack, but the default should be to push the raw results, not to push a blank.

Type: enhancement Observed in Version: 3.5.0
Component: YUI Global Object Severity: S3 (normal)
Assigned To: Dav Glass Target Release: 3.6.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Eric Ferraiuolo

YUI Developer

Posted: 04/27/12
  • location changed to Library Code
  • owner changed from Jenny Donnelly to Dav Glass
  • priority changed to P3 (normal)
  • status changed from new to assigned

Dav Glass

Posted: 05/1/12
  • component changed from None to YUI Global Object
  • milestone changed to 3.6.0
  • owner changed from Dav Glass to Dav Glass
  • status changed from accepted to assigned

Dav Glass

Posted: 05/1/12
  • estimated changed from 0 to 0.1
  • remaining changed from 0 to 0.1
  • sprint changed to backlog
  • status changed from assigned to accepted

Dav Glass

Posted: 05/11/12
  • status changed from accepted to infoneeded

So you want this:

self.results.push(fn && fn.apply(self.context, arguments));

Changed to this?

self.results.push(fn && fn.apply(self.context, arguments) || arguments);

Can you give me a use case so I can add a test for this?

Dav Glass

Posted: 05/11/12
  • sprint changed from backlog to sprint 2
  • status changed from infoneeded to assigned

John Lindal

YUI Contributor

Posted: 05/11/12

Dav Glass

Posted: 05/11/12
  • status changed from assigned to checkedin

Merged, in the next build..

Dav Glass

Posted: 05/14/12
  • completed changed from 0 to 0.1
  • remaining changed from 0.1 to 0

Jenny Donnelly

YUI Developer

Posted: 08/1/12
  • resolution changed to fixed
  • status changed from checkedin to closed

Shipped in 3.6.0. Marking closed/fixed.