diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-07 11:16:13 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-07 11:16:13 +0100 |
commit | ec028a1c0d904d89fb161d24e844457ab18b4110 (patch) | |
tree | 07ff91dd3c75cc9a16149a390051d3536ace77aa | |
parent | e3155dd13a7ea715366a66a7805704bd2187f192 (diff) | |
download | gitbook-ec028a1c0d904d89fb161d24e844457ab18b4110.zip gitbook-ec028a1c0d904d89fb161d24e844457ab18b4110.tar.gz gitbook-ec028a1c0d904d89fb161d24e844457ab18b4110.tar.bz2 |
Add deprecated methods isSubBook and contentPath
-rw-r--r-- | lib/book.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/book.js b/lib/book.js index 1d3a0d2..dac73f8 100644 --- a/lib/book.js +++ b/lib/book.js @@ -365,6 +365,14 @@ Book.prototype.contentLink = error.deprecateMethod(function(s) { return this.output.toURL(s); }, '.contentLink() is deprecated, use ".output.toURL()" instead'); +Book.prototype.contentPath = error.deprecateMethod(function(s) { + return this.output.toURL(s); +}, '.contentPath() is deprecated, use ".output.toURL()" instead'); + +Book.prototype.isSubBook = error.deprecateMethod(function() { + return this.isLanguageBook(); +}, '.isSubBook() is deprecated, use ".isLanguageBook()" instead'); + // Initialize a book Book.init = function(fs, root, opts) { |