Rename unzoomGraph, remove commented-out code.
authorRobert Konigsberg <konigsberg@google.com>
Thu, 23 Dec 2010 00:01:33 +0000 (16:01 -0800)
committerRobert Konigsberg <konigsberg@google.com>
Thu, 23 Dec 2010 00:01:33 +0000 (16:01 -0800)
tests/interaction.html
tests/interaction.js

index e6d103e..3d01ecd 100644 (file)
@@ -26,7 +26,7 @@
     <tr><td>
     <b>Custom interaction model</b>
 
-    <input type="button" value="Unzoom" onclick="unzoomGraph(g3)">
+    <input type="button" value="Restore position" onclick="restorePositioning(g3)">
     <div id="div_g3" style="width:600px; height:300px;"></div>
     </td><td>
     Zoom in: double-click, scroll wheel<br/>
index 18bc366..ab5d5f5 100644 (file)
                   return;
                 }
               }
-              // drawV4(false, canvasx, canvasy);
             }
           }
-          // drawV4(false, canvasx, canvasy);
         }
       }
 
       }
 
       function dblClickV4(event, g, context) {
-        unzoomGraph(g4);
+        restorePositioning(g4);
       }
 
       function drawV4(x, y) {
         v4Canvas = canvas;
       }
 
-      function unzoomGraph(g) {
+      function restorePositioning(g) {
         g.updateOptions({
           dateWindow: null,
           valueRange: null