summaryrefslogtreecommitdiffstats
path: root/lib/api/encodePage.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-29 10:17:16 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-29 10:17:16 +0200
commit93e701f4712ab9e476061f8f81fb03eda1c2af2a (patch)
tree8e07db9dcb7b44d07d29f2d0a4cd8eccb564302e /lib/api/encodePage.js
parent68b9bf7e38867eed8763854a731f15959aaf65b5 (diff)
downloadgitbook-93e701f4712ab9e476061f8f81fb03eda1c2af2a.zip
gitbook-93e701f4712ab9e476061f8f81fb03eda1c2af2a.tar.gz
gitbook-93e701f4712ab9e476061f8f81fb03eda1c2af2a.tar.bz2
Complete deprecated page.progress and this.navigation
Diffstat (limited to 'lib/api/encodePage.js')
-rw-r--r--lib/api/encodePage.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/api/encodePage.js b/lib/api/encodePage.js
index 1465137..8ad39c5 100644
--- a/lib/api/encodePage.js
+++ b/lib/api/encodePage.js
@@ -22,11 +22,9 @@ function encodePage(output, page) {
result.path = file.getPath();
result.rawPath = fs.resolve(result.path);
- // todo: (as deprecated)
- // page.progress
-
- deprecate.field(output, 'page.progress', result, 'sections', encodeProgress(output, page),
- '"page.progress" property is deprecated');
+ deprecate.field(output, 'page.progress', result, 'sections', function() {
+ return encodeProgress(output, page);
+ }, '"page.progress" property is deprecated');
deprecate.field(output, 'page.sections', result, 'sections', [
{