better mouse event names
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -55,7 +55,7 @@ var Mouse = function(casper) { | ... | @@ -55,7 +55,7 @@ var Mouse = function(casper) { |
55 | throw new Error('Unsupported mouse event type: ' + type); | 55 | throw new Error('Unsupported mouse event type: ' + type); |
56 | } | 56 | } |
57 | args = Array.prototype.slice.call(args); // cast Arguments -> Array | 57 | args = Array.prototype.slice.call(args); // cast Arguments -> Array |
58 | casper.emit('mouse.' + type, args); | 58 | casper.emit('mouse.' + type.replace('mouse', ''), args); |
59 | switch (args.length) { | 59 | switch (args.length) { |
60 | case 0: | 60 | case 0: |
61 | throw new Error('Too few arguments'); | 61 | throw new Error('Too few arguments'); | ... | ... |
-
Please register or sign in to post a comment