Skip to content

Commit

Permalink
fix issue with proto methods being wiped off objects when cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
particlebanana committed Feb 19, 2014
1 parent 4f26ec8 commit 75e7283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/views/res.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = function _addResViewMethod(req, res, next) {
relPathToView = '' + relPathToView + '';

// TODO: determine if this deep clone is necessary
locals = _.cloneDeep(locals || {});
locals = locals || {};

// Mixin locals from req.options
if (req.options.locals) {
Expand Down

0 comments on commit 75e7283

Please sign in to comment.