diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-29 10:17:16 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-29 10:17:16 +0200 |
commit | 93e701f4712ab9e476061f8f81fb03eda1c2af2a (patch) | |
tree | 8e07db9dcb7b44d07d29f2d0a4cd8eccb564302e /lib/api/encodeGlobal.js | |
parent | 68b9bf7e38867eed8763854a731f15959aaf65b5 (diff) | |
download | gitbook-93e701f4712ab9e476061f8f81fb03eda1c2af2a.zip gitbook-93e701f4712ab9e476061f8f81fb03eda1c2af2a.tar.gz gitbook-93e701f4712ab9e476061f8f81fb03eda1c2af2a.tar.bz2 |
Complete deprecated page.progress and this.navigation
Diffstat (limited to 'lib/api/encodeGlobal.js')
-rw-r--r-- | lib/api/encodeGlobal.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/encodeGlobal.js b/lib/api/encodeGlobal.js index 78919d3..0191c50 100644 --- a/lib/api/encodeGlobal.js +++ b/lib/api/encodeGlobal.js @@ -82,8 +82,9 @@ function encodeGlobal(output) { // Deprecated properties - deprecate.field(output, 'this.navigation', result, 'sections', encodeNavigation(output), - '"navigation" property is deprecated'); + deprecate.field(output, 'this.navigation', result, 'navigation', function() { + return encodeNavigation(output); + }, '"navigation" property is deprecated'); deprecate.field(output, 'this.book', result, 'book', result, '"book" property is deprecated, use "this" directly instead'); |