added events in mouse module
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -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'); | ... | ... |
-
Please register or sign in to post a comment