summaryrefslogtreecommitdiffstats
path: root/lib/api/encodeGlobal.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/encodeGlobal.js')
-rw-r--r--lib/api/encodeGlobal.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/api/encodeGlobal.js b/lib/api/encodeGlobal.js
index 675f4a3..cb91a33 100644
--- a/lib/api/encodeGlobal.js
+++ b/lib/api/encodeGlobal.js
@@ -48,15 +48,6 @@ function encodeGlobal(output) {
},
/**
- Same as isLanguageBook
-
- @deprecated
- */
- isSubBook: deprecate.method(output, 'this.isSubBook', function() {
- return book.isLanguageBook();
- }, '"isSubBook" is deprecated, use "isLanguageBook()" instead'),
-
- /**
Read a file from the book
@param {String} fileName
@@ -141,6 +132,9 @@ function encodeGlobal(output) {
// Deprecated properties
+ deprecate.renamedMethod(output, 'this.isSubBook', result, 'isSubBook', 'isLanguageBook');
+ deprecate.renamedMethod(output, 'this.contentLink', result, 'contentLink', 'output.toURL');
+
deprecate.field(output, 'this.generator', result, 'generator',
output.getGenerator(), '"this.generator" property is deprecated, use "this.output.name" instead');