summaryrefslogtreecommitdiffstats
path: root/lib/api
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-04-30 12:14:43 +0200
committerSamy Pesse <samypesse@gmail.com>2016-04-30 12:14:43 +0200
commit5bad08b9a0756c46eebf6d8460c959ec388d7e74 (patch)
tree17f6e11822b453795c2a1cff5a5fddf196929a14 /lib/api
parent310691bca2459112a586da97573e9a806b673941 (diff)
downloadgitbook-5bad08b9a0756c46eebf6d8460c959ec388d7e74.zip
gitbook-5bad08b9a0756c46eebf6d8460c959ec388d7e74.tar.gz
gitbook-5bad08b9a0756c46eebf6d8460c959ec388d7e74.tar.bz2
Add this.generator as deprecated
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/encodeGlobal.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/encodeGlobal.js b/lib/api/encodeGlobal.js
index 89cea59..4688cca 100644
--- a/lib/api/encodeGlobal.js
+++ b/lib/api/encodeGlobal.js
@@ -101,8 +101,14 @@ function encodeGlobal(output) {
}
};
+ // todo
+ // template.applyBlock
+
// Deprecated properties
+ deprecate.field(output, 'this.generator', result, 'generator',
+ output.getGenerator(), '"this.generator" property is deprecated, use "this.output.name" instead');
+
deprecate.field(output, 'this.navigation', result, 'navigation', function() {
return encodeNavigation(output);
}, '"navigation" property is deprecated');