diff options
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/templateBlock.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/templateBlock.js b/lib/models/templateBlock.js index 4e47da7..340f808 100644 --- a/lib/models/templateBlock.js +++ b/lib/models/templateBlock.js @@ -187,7 +187,7 @@ TemplateBlock.prototype.toNunjucksExt = function(mainContext) { }) .nodeify(callback); }; - }; + } return Ext; }; @@ -209,7 +209,7 @@ TemplateBlock.prototype.applyBlock = function(inner, context) { var r = processFn.call(context, inner); if (Promise.isPromiseAlike(r)) { - return r.then(this.handleBlockResult); + return r.then(this.handleBlockResult.bind(this)); } else { return this.handleBlockResult(r); } |