summaryrefslogtreecommitdiffstats
path: root/lib/backbone/summary.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-02-12 19:20:32 +0100
committerSamy Pesse <samypesse@gmail.com>2016-02-12 19:20:32 +0100
commit4555c541a8f98cb6ad4cbec2d7bf85b375dbf505 (patch)
tree0079507e1885a6c8a94a36644650a865f5e8cc5d /lib/backbone/summary.js
parenta853a51a0ba0976e8e28f368bd88717611b3c477 (diff)
downloadgitbook-4555c541a8f98cb6ad4cbec2d7bf85b375dbf505.zip
gitbook-4555c541a8f98cb6ad4cbec2d7bf85b375dbf505.tar.gz
gitbook-4555c541a8f98cb6ad4cbec2d7bf85b375dbf505.tar.bz2
Replace links to page of summary by html links
Diffstat (limited to 'lib/backbone/summary.js')
-rw-r--r--lib/backbone/summary.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backbone/summary.js b/lib/backbone/summary.js
index 35f65e6..aa52104 100644
--- a/lib/backbone/summary.js
+++ b/lib/backbone/summary.js
@@ -23,7 +23,7 @@ function TOCArticle(summary, title, ref, articles, parent) {
}
var parts = url.parse(ref);
- this.filename = parts.pathname;
+ this.path = parts.pathname;
this.anchor = parts.hash;
this.articles = _.map(articles || [], function(article) {
@@ -42,7 +42,7 @@ TOCArticle.prototype.walk = function(iter) {
// Return true if is pointing to a file
TOCArticle.prototype.hasLocation = function() {
- return Boolean(this.filename);
+ return Boolean(this.path);
};
// Return true if has children