Skip to content
Myr

Added union() util, taking place of merge(clone()) combo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent ef1c858 · Browse files · 2 files+25 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+25 added−18 removed

  • other:+25 added−18 removed

2 files+25 added−18 removed

modified:lib/utils.js+23 added-16 removed
modified:lib/view.js+2 added-2 removed
12 unmodified lines
13 , extname = path.extname14 , dirname = path.dirname15 , basename = path.basename16 , utils = require('connect').utils17 , clone = require('./utils').clone17 , View = require('./view/view')18 , Partial = require('./view/partial')19 , union = require('./utils').union20 , merge = utils.merge21 , http = require('http');2223/**
210 unmodified lines
234 merge(options, this.__dynamicHelpers);235 }236237 // Merge view helpers238 options = merge(clone(helpers), options);238 union(options, helpers);239240 // Always expose partial() as a local241 options.partial = function(path, opts){242 return self.partial(path, opts, options, view);
36 unmodified lines