diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-05-02 09:14:01 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-05-02 09:14:01 +0200 |
commit | 494ba78156eb29a782ee00cfea11ea558a50618c (patch) | |
tree | 1f88d22d3e2f13b6c65c0420316f64018b901e0e /lib/models | |
parent | 9816b27ebfe0aa91f3f550d44626a2cd860a92de (diff) | |
download | gitbook-494ba78156eb29a782ee00cfea11ea558a50618c.zip gitbook-494ba78156eb29a782ee00cfea11ea558a50618c.tar.gz gitbook-494ba78156eb29a782ee00cfea11ea558a50618c.tar.bz2 |
Complete api method template.applyBlock
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); } |