Skip to content

Commit

Permalink
Fix improper use of object exension, causing data from pages to leak …
Browse files Browse the repository at this point in the history
…into each other
  • Loading branch information
gakimball committed Feb 23, 2016
1 parent cfded2d commit 79a5057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var extend = require('util')._extend;
var extend = require('extend');
var fs = require('fs');
var path = require('path');
var rimraf = require('rimraf');
Expand All @@ -11,7 +11,7 @@ module.exports = function(data) {
var output = '';

// Extend file data with global data
data = extend(this.options.data, data);
data = extend({}, this.options.data, data);

// Catch Handlebars errors, because they won't show up in the Gulp console
try {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"chalk": "^1.1.1",
"commander": "^2.8.1",
"escape-html": "^1.0.3",
"extend": "^3.0.0",
"front-matter": "^1.0.0",
"glob": "^4.3.5",
"gulp-util": "^3.0.7",
Expand Down

0 comments on commit 79a5057

Please sign in to comment.