diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-21 01:02:20 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-21 01:02:20 +0100 |
commit | 2f15e26ffa9ca67007e9f23ac732fed0fcb109d9 (patch) | |
tree | 81c80adddaa8437e3ec7bda26bf62f8b62f014ff /lib/output/json.js | |
parent | b4cdbc6534b12d4547898077b7d5b2fd2b2163d0 (diff) | |
download | gitbook-2f15e26ffa9ca67007e9f23ac732fed0fcb109d9.zip gitbook-2f15e26ffa9ca67007e9f23ac732fed0fcb109d9.tar.gz gitbook-2f15e26ffa9ca67007e9f23ac732fed0fcb109d9.tar.bz2 |
Fix context for templating and page
Diffstat (limited to 'lib/output/json.js')
-rw-r--r-- | lib/output/json.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output/json.js b/lib/output/json.js index 5805579..86a2307 100644 --- a/lib/output/json.js +++ b/lib/output/json.js @@ -16,7 +16,7 @@ JSONOutput.prototype.onPage = function(page) { // Write as json .then(function() { - var json = that.getPageContext(page); + var json = page.getContext(); // Delete some private properties delete json.config; |