Fix bug preventing pages with number assertions from being accessed by index. See...
authorMichael Ang <mang@archive.org>
Fri, 18 Sep 2009 00:52:32 +0000 (00:52 +0000)
committerMichael Ang <mang@archive.org>
Fri, 18 Sep 2009 00:52:32 +0000 (00:52 +0000)
GnuBook/GnuBook.js

index 86ad43c..6e83b84 100644 (file)
@@ -3001,7 +3001,7 @@ GnuBook.prototype.getPageIndices = function(pageNum) {
         try {
             var pageIntStr = pageNum.slice(1, pageNum.length);
             var pageIndex = parseInt(pageIntStr);
-            indices.append(pageIndex);
+            indices.push(pageIndex);
             return indices;
         } catch(err) {
             // Do nothing... will run through page names and see if one matches