* @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) {
/**
* Dispatch an event onto the graph's canvas.
*/
-DygraphOps.dispatchCanvasEvent(g, event) {
+DygraphOps.dispatchCanvasEvent = function(g, event) {
g.canvas_.dispatchEvent(event);
}
type : 'dblclick',
detail : 2
};
- var event = DygraphOps.createEvent_(opts, custom);
+ var event = DygraphOps.createEvent(opts, custom);
DygraphOps.dispatchCanvasEvent(g, event);
};
clientY : pageY,
};
- var event = DygraphOps.createEvent_(opts, custom);
+ var event = DygraphOps.createEvent(opts, custom);
DygraphOps.dispatchCanvasEvent(g, event);
}
clientY : pageY,
};
- var event = DygraphOps.createEvent_(opts, custom);
+ var event = DygraphOps.createEvent(opts, custom);
DygraphOps.dispatchCanvasEvent(g, event);
};
clientY : pageY,
};
- var event = DygraphOps.createEvent_(opts, custom);
+ var event = DygraphOps.createEvent(opts, custom);
DygraphOps.dispatchCanvasEvent(g, event);
};