Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f4906838
...
f4906838fc14954353bed04ad248b3dee1e6c145
authored
2012-01-06 11:16:06 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
better mouse event names
1 parent
157c1028
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/mouse.js
modules/mouse.js
View file @
f490683
...
...
@@ -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'
);
...
...
Please
register
or
sign in
to post a comment