Merge branch 'newui' of git@github.com:openlibrary/bookreader into newui
authorrajbot <raj@archive.org>
Mon, 18 Oct 2010 20:29:40 +0000 (20:29 +0000)
committerrajbot <raj@archive.org>
Mon, 18 Oct 2010 20:29:40 +0000 (20:29 +0000)
BookReader/BookReader.js

index a01ea70..1d3509e 100644 (file)
@@ -4337,6 +4337,7 @@ BookReader.prototype.gotOpenLibraryRecord = function(self, olObject) {
     // $$$ could refactor this so that 'this' is available
     if (olObject) {
         if (olObject['table_of_contents']) {
+            // XXX check here that TOC is valid
             self.updateTOC(olObject['table_of_contents']);
         }
     }