Merge pull request #139 from klausw-g/stacked-NaN
[dygraphs.git] / auto_tests / tests / DygraphOps.js
index 4dae18e..d792259 100644 (file)
@@ -51,7 +51,7 @@ DygraphOps.defaultEvent_ = {
  * @param command the command to create.
  * @param custom an associative array of event attributes and their new values.
  */
-DygraphOps.createEvent_ = function(command, custom) {
+DygraphOps.createEvent = function(command, custom) {
 
   var copy = function(from, to) {
     if (from != null) {
@@ -91,7 +91,7 @@ DygraphOps.createEvent_ = function(command, custom) {
 /**
  * Dispatch an event onto the graph's canvas.
  */
-DygraphOps.dispatchCanvasEvent(g, event) {
+DygraphOps.dispatchCanvasEvent = function(g, event) {
   g.canvas_.dispatchEvent(event);
 }
 
@@ -100,7 +100,7 @@ DygraphOps.dispatchDoubleClick = function(g, custom) {
     type : 'dblclick',
     detail : 2
   };
-  var event = DygraphOps.createEvent_(opts, custom);
+  var event = DygraphOps.createEvent(opts, custom);
   DygraphOps.dispatchCanvasEvent(g, event);
 };
 
@@ -117,7 +117,7 @@ DygraphOps.dispatchMouseDown_Point = function(g, x, y, custom) {
     clientY : pageY,
   };
 
-  var event = DygraphOps.createEvent_(opts, custom);
+  var event = DygraphOps.createEvent(opts, custom);
   DygraphOps.dispatchCanvasEvent(g, event);
 }
 
@@ -133,7 +133,7 @@ DygraphOps.dispatchMouseMove_Point = function(g, x, y, custom) {
     clientY : pageY,
   };
 
-  var event = DygraphOps.createEvent_(opts, custom);
+  var event = DygraphOps.createEvent(opts, custom);
   DygraphOps.dispatchCanvasEvent(g, event);
 };
 
@@ -149,7 +149,7 @@ DygraphOps.dispatchMouseUp_Point = function(g, x, y, custom) {
     clientY : pageY,
   };
 
-  var event = DygraphOps.createEvent_(opts, custom);
+  var event = DygraphOps.createEvent(opts, custom);
   DygraphOps.dispatchCanvasEvent(g, event);
 };