diff --git a/lib/parallel.js b/lib/parallel.js index ffa91f5..522d105 100644 --- a/lib/parallel.js +++ b/lib/parallel.js @@ -13,11 +13,14 @@ function parallel() { var args = normalizeArgs(this._registry, arguments); var extensions = createExtensions(this); var fn = create(args, extensions); + + fn.displayName = ''; + metadata.set(fn, { - name: 'parallel', + name: fn.displayName, branch: true, tree: { - label: '', + label: fn.displayName, type: 'function', nodes: buildTree(args), }, diff --git a/lib/series.js b/lib/series.js index 7941101..ba94dba 100644 --- a/lib/series.js +++ b/lib/series.js @@ -13,11 +13,14 @@ function series() { var args = normalizeArgs(this._registry, arguments); var extensions = createExtensions(this); var fn = create(args, extensions); + + fn.displayName = ''; + metadata.set(fn, { - name: 'series', + name: fn.displayName, branch: true, tree: { - label: '', + label: fn.displayName, type: 'function', nodes: buildTree(args), },