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
c422c2c5
...
c422c2c541d891ef2125f043a92a75ca30920622
authored
2011-12-25 22:17:09 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
not so fast, cowboy.
1 parent
92f5aebf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
c422c2c
...
...
@@ -149,7 +149,7 @@ Casper.prototype = {
*/
capture
:
function
(
targetFile
,
clipRect
)
{
var
previousClipRect
;
targetFile
=
require
(
'fs'
)
.
absolute
(
targetFile
);
targetFile
=
fs
.
absolute
(
targetFile
);
if
(
clipRect
)
{
if
(
!
utils
.
isType
(
clipRect
,
"object"
))
{
throw
new
Error
(
"clipRect must be an Object instance."
);
...
...
Please
register
or
sign in
to post a comment