X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2FDygraphOps.js;h=d792259839cdfe5747d2d838ee2168e369630775;hb=e27878d929f79c34d7f4cf201aa3b3ccfb372a8e;hp=4dae18e2ec781d19d6394ee7183249e694d0334f;hpb=21c079e5c7761be8a0fb1e2d6a4d6ada57fae3a1;p=dygraphs.git diff --git a/auto_tests/tests/DygraphOps.js b/auto_tests/tests/DygraphOps.js index 4dae18e..d792259 100644 --- a/auto_tests/tests/DygraphOps.js +++ b/auto_tests/tests/DygraphOps.js @@ -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); };