diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
commit | c1d53ec11fbe085932df911bda5686b7bf671f53 (patch) | |
tree | 97ae6db641eb79ec9b061af136a0b2e3c549db55 /lib/models/file.js | |
parent | 36b49c66c6b75515bc84dd678fd52121a313e8d2 (diff) | |
download | gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.zip gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.gz gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.bz2 |
Switch parsers to a model
Diffstat (limited to 'lib/models/file.js')
-rw-r--r-- | lib/models/file.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/file.js b/lib/models/file.js index d1726a7..8ddd4af 100644 --- a/lib/models/file.js +++ b/lib/models/file.js @@ -36,7 +36,7 @@ File.prototype.exists = function() { File.prototype.getType = function() { var parser = this.getParser(); if (parser) { - return parser.name; + return parser.getName(); } else { return undefined; } |