Declare variable for cleanliness
authorMichael Ang <mang@archive.org>
Tue, 30 Jun 2009 23:46:55 +0000 (23:46 +0000)
committerMichael Ang <mang@archive.org>
Tue, 30 Jun 2009 23:46:55 +0000 (23:46 +0000)
GnuBook/GnuBook.js

index ffb90d4..f150d7a 100644 (file)
@@ -2251,7 +2251,7 @@ GnuBook.prototype.getPageIndices = function(pageNum) {
     if (pageNum.slice(0,1) == 'n') {
         try {
             var pageIntStr = pageNum.slice(1, pageNum.length);
-            pageIndex = parseInt(pageIntStr);
+            var pageIndex = parseInt(pageIntStr);
             indices.append(pageIndex);
             return indices;
         } catch(err) {