Commit f4906838 f4906838fc14954353bed04ad248b3dee1e6c145 by Nicolas Perriault

better mouse event names

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