Commit 18b1423a 18b1423a3a9e476031346c6fc58655101c591c0d by Nicolas Perriault

added events in mouse module

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