Permalink
Browse files

Roll back arrow functions because node 0.12 on netlify

  • Loading branch information...
1 parent 62fc5da commit fc3e504d147281073ccf009cf31fdcb33a15e79b @lyzadanger committed Dec 7, 2015
Showing with 4 additions and 4 deletions.
  1. +4 −4 build/plugins/handlebars.js
@@ -43,7 +43,7 @@ module.exports = function buildTemplates(opts) {
return new Promise (function (resolve) {
if (opts.partialDir) {
recursive(opts.partialDir)
- .then((files) => {
+ .then(function (files) {
files.forEach(registerPartial);
resolve();
});
@@ -66,7 +66,7 @@ module.exports = function buildTemplates(opts) {
return new Promise (function (resolve) {
if (opts.templateDir) {
recursive(opts.templateDir)
- .then((files) => {
+ .then(function (files) {
files.forEach(getTemplate);
resolve();
});
@@ -91,7 +91,7 @@ module.exports = function buildTemplates(opts) {
}
if (file.isBuffer()) {
- prepReady.then(() => {
+ prepReady.then(function () {
var context = _.extend(
{ template: opts.defaultTemplate,
content: file.contents.toString() },
@@ -108,7 +108,7 @@ module.exports = function buildTemplates(opts) {
}
this.push(file);
cb();
- });
+ }.bind(this));
}
});
};

0 comments on commit fc3e504

Please sign in to comment.