diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c1f7602..95c461520 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ Changelog ## 2.0.x +### 2.0.5 + +- Fixed #36 - Don't use `invokeBody()` in the cache taglib + ### 2.0.4 - :exclamation: Fixed #36 - Deprecated - When using `` with body content, nested body content is now passed in as `String` property named `body`. Old behavior: nested content would be passed in as a `Function` property named `invokeBody` that would return the `String` value of the nested content. `invokeBody()` has been deprecated. diff --git a/taglibs/caching/cached-fragment-tag.js b/taglibs/caching/cached-fragment-tag.js index ff530efaf..fa2d2dfdd 100644 --- a/taglibs/caching/cached-fragment-tag.js +++ b/taglibs/caching/cached-fragment-tag.js @@ -41,8 +41,8 @@ module.exports = { { builder: function(callback) { var result = out.captureString(function () { - if (input.invokeBody) { - input.invokeBody(); + if (input.renderBody) { + input.renderBody(out); } }); callback(null, result);