Skip to content

Commit

Permalink
Fix: Consistent naming for functions created by series/parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 22, 2016
1 parent e557dc2 commit 9e9ca31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions lib/parallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ function parallel() {
var args = normalizeArgs(this._registry, arguments);
var extensions = createExtensions(this);
var fn = create(args, extensions);

fn.displayName = '<parallel>';

metadata.set(fn, {
name: 'parallel',
name: fn.displayName,
branch: true,
tree: {
label: '<parallel>',
label: fn.displayName,
type: 'function',
nodes: buildTree(args),
},
Expand Down
7 changes: 5 additions & 2 deletions lib/series.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ function series() {
var args = normalizeArgs(this._registry, arguments);
var extensions = createExtensions(this);
var fn = create(args, extensions);

fn.displayName = '<series>';

metadata.set(fn, {
name: 'series',
name: fn.displayName,
branch: true,
tree: {
label: '<series>',
label: fn.displayName,
type: 'function',
nodes: buildTree(args),
},
Expand Down

0 comments on commit 9e9ca31

Please sign in to comment.