Commit 18b1423a 18b1423a3a9e476031346c6fc58655101c591c0d by Nicolas Perriault

added events in mouse module

1 parent cea904e9
......@@ -25,6 +25,7 @@ var Mouse = function(casper) {
throw new Error('Unsupported mouse event type: ' + type);
}
args = Array.prototype.slice.call(args); // cast Arguments -> Array
casper.emit('casper.mouse.click', args);
switch (args.length) {
case 0:
throw new Error('Too few arguments');
......