diff options
author | Johan Preynat <johan.preynat@gmail.com> | 2016-04-30 17:04:44 +0200 |
---|---|---|
committer | Johan Preynat <johan.preynat@gmail.com> | 2016-04-30 17:05:30 +0200 |
commit | 5f3c3760c06e516d694c0f218bc86ea286ede410 (patch) | |
tree | a410c7731683d2f10bebc616489c76e85b6be90a /lib/models | |
parent | 8b05885d57d3753193950a17331b4d32b23abe64 (diff) | |
download | gitbook-5f3c3760c06e516d694c0f218bc86ea286ede410.zip gitbook-5f3c3760c06e516d694c0f218bc86ea286ede410.tar.gz gitbook-5f3c3760c06e516d694c0f218bc86ea286ede410.tar.bz2 |
lib/models/templateBlock.js: Fix convert blocks to pure JS array before passing to parser.parseUntilBlocks()
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/templateBlock.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/templateBlock.js b/lib/models/templateBlock.js index 999898c..4e47da7 100644 --- a/lib/models/templateBlock.js +++ b/lib/models/templateBlock.js @@ -77,7 +77,7 @@ TemplateBlock.prototype.toNunjucksExt = function(mainContext) { var that = this; var name = this.getName(); var endTag = this.getEndTag(); - var blocks = this.getBlocks(); + var blocks = this.getBlocks().toJS(); function Ext() { this.tags = [name]; |