summaryrefslogtreecommitdiffstats
path: root/lib/backbone/file.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-28 18:39:44 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-28 18:39:44 +0100
commit4b465bedea94688a9adfb9136c9d2970d5496274 (patch)
tree7e29cc10d07b86d86239bd1cd59fab7996b412ce /lib/backbone/file.js
parent461ef2c68e9086bd77f0a25d57956ebf60308f7c (diff)
downloadgitbook-4b465bedea94688a9adfb9136c9d2970d5496274.zip
gitbook-4b465bedea94688a9adfb9136c9d2970d5496274.tar.gz
gitbook-4b465bedea94688a9adfb9136c9d2970d5496274.tar.bz2
Fix tests for languages parsing
Diffstat (limited to 'lib/backbone/file.js')
-rw-r--r--lib/backbone/file.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/backbone/file.js b/lib/backbone/file.js
index 34cf066..a58063c 100644
--- a/lib/backbone/file.js
+++ b/lib/backbone/file.js
@@ -1,3 +1,4 @@
+var _ = require('lodash');
function BackboneFile(book) {
if (!(this instanceof BackboneFile)) return new BackboneFile(book);
@@ -8,6 +9,8 @@ function BackboneFile(book) {
// Filename in the book
this.filename = '';
this.parser;
+
+ _.bindAll(this);
}
// Type of the backbone file