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
18b1423a
...
18b1423a3a9e476031346c6fc58655101c591c0d
authored
2012-01-02 20:50:38 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added events in mouse module
1 parent
cea904e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
modules/mouse.js
modules/mouse.js
View file @
18b1423
...
...
@@ -25,6 +25,7 @@ var Mouse = function(casper) {
throw
new
Error
(
'Unsupported mouse event type: '
+
type
);
}
args
=
Array
.
prototype
.
slice
.
call
(
args
);
// cast Arguments -> Array
casper
.
emit
(
'casper.mouse.click'
,
args
);
switch
(
args
.
length
)
{
case
0
:
throw
new
Error
(
'Too few arguments'
);
...
...
Please
register
or
sign in
to post a comment