summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-03-07 11:16:13 +0100
committerSamy Pessé <samypesse@gmail.com>2016-03-07 11:16:13 +0100
commitec028a1c0d904d89fb161d24e844457ab18b4110 (patch)
tree07ff91dd3c75cc9a16149a390051d3536ace77aa
parente3155dd13a7ea715366a66a7805704bd2187f192 (diff)
downloadgitbook-ec028a1c0d904d89fb161d24e844457ab18b4110.zip
gitbook-ec028a1c0d904d89fb161d24e844457ab18b4110.tar.gz
gitbook-ec028a1c0d904d89fb161d24e844457ab18b4110.tar.bz2
Add deprecated methods isSubBook and contentPath
-rw-r--r--lib/book.js8
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) {