Add string representation for books

This commit is contained in:
Samy Pessé
2015-03-24 08:49:22 +01:00
parent ec8d1d8fc9
commit cb3a43ed8a
+5
View File
@@ -94,6 +94,11 @@ var Book = function(root, context, parent) {
_.bindAll(this);
};
// Return string representation
Book.prototype.toString = function() {
return "[Book "+this.root+"]";
};
// Initialize and parse the book: config, summary, glossary
Book.prototype.parse = function() {
var that = this;