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
8e37f3f0
...
8e37f3f01674521f252657688c3adc764d3e5b65
authored
2012-09-22 10:40:31 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
js linting
1 parent
7c714d10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
modules/casper.js
modules/casper.js
View file @
8e37f3f
...
...
@@ -505,7 +505,7 @@ Casper.prototype.echo = function echo(text, style, pad) {
}
catch
(
e
)
{
try
{
text
=
utils
.
serialize
(
text
);
}
catch
(
e
)
{
}
catch
(
e
2
)
{
text
=
''
;
}
}
...
...
@@ -843,8 +843,9 @@ Casper.prototype.injectClientUtils = function injectClientUtils() {
}
// ClientUtils and Casper shares the same options
// These are not the lines I'm the most proud of in my life, but it works.
/*global __options*/
this
.
page
.
evaluate
(
function
()
{
window
.
__utils__
=
new
ClientUtils
(
__options
);
window
.
__utils__
=
new
window
.
ClientUtils
(
__options
);
}.
toString
().
replace
(
'__options'
,
JSON
.
stringify
(
this
.
options
)));
};
...
...
Please
register
or
sign in
to post a comment