From 55fe5aec6da8bf252ddc3f3e091e4035d2f43c72 Mon Sep 17 00:00:00 2001 From: Michael Ang Date: Thu, 10 Sep 2009 19:48:47 +0000 Subject: [PATCH] Revert "Remove unused special page number code" May be needed for named pages to access them by index. Reverting for now. This reverts commit d009b21bbcbfee26566cf694f52376ab92c6e336. --- GnuBook/GnuBook.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/GnuBook/GnuBook.js b/GnuBook/GnuBook.js index 4ac756a..761eee8 100644 --- a/GnuBook/GnuBook.js +++ b/GnuBook/GnuBook.js @@ -2957,19 +2957,17 @@ GnuBook.prototype.getPageIndex = function(pageNum) { GnuBook.prototype.getPageIndices = function(pageNum) { var indices = []; - /* Special page numbers are now generated and added so special check not needed // Check for special "nXX" page number if (pageNum.slice(0,1) == 'n') { try { var pageIntStr = pageNum.slice(1, pageNum.length); var pageIndex = parseInt(pageIntStr); - indices.push(pageIndex); + indices.append(pageIndex); return indices; } catch(err) { // Do nothing... will run through page names and see if one matches } } - */ var i; for (i=0; i