diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-09 15:50:38 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-09 15:50:38 +0100 |
commit | c499a8a13a3059e3953727866beb7c986e46dd78 (patch) | |
tree | 173ee93cb957446855d8519335ad5dba0f7cc332 /lib/output/json.js | |
parent | 64a6de751d0f2bd8910ce36e2e8aa4049316e2c7 (diff) | |
download | gitbook-c499a8a13a3059e3953727866beb7c986e46dd78.zip gitbook-c499a8a13a3059e3953727866beb7c986e46dd78.tar.gz gitbook-c499a8a13a3059e3953727866beb7c986e46dd78.tar.bz2 |
Add back gitbook.generator property as deprecated
Diffstat (limited to 'lib/output/json.js')
-rw-r--r-- | lib/output/json.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/output/json.js b/lib/output/json.js index 3246407..b66e593 100644 --- a/lib/output/json.js +++ b/lib/output/json.js @@ -1,3 +1,4 @@ +var _ = require('lodash'); var conrefsLoader = require('./conrefs'); var JSONOutput = conrefsLoader(); @@ -16,7 +17,7 @@ JSONOutput.prototype.onPage = function(page) { // Write as json .then(function() { - var json = page.getContext(); + var json = page.getOutputContext(that); // Delete some private properties delete json.config; |