Use rotate/scale if passed in
authorMichael Ang <mang@archive.org>
Mon, 21 Sep 2009 21:39:40 +0000 (21:39 +0000)
committerMichael Ang <mang@archive.org>
Mon, 21 Sep 2009 21:39:40 +0000 (21:39 +0000)
GnuBookIA/datanode/GnuBookJSIA.php

index d8566b0..49881a3 100755 (executable)
@@ -141,10 +141,15 @@ gb.getPageURI = function(index, reduce, rotate) {
 
     if ('undefined' == typeof(reduce)) {
         _reduce = 1;
+    } else {
+        _reduce = reduce;
     }
     if ('undefined' == typeof(rotate)) {
         _rotate = 0;
+    } else {
+        _rotate = rotate;
     }
+    
     var leafStr = '0000';
     var imgStr = this.leafMap[index].toString();
     var re = new RegExp("0{"+imgStr.length+"}$");