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
dd5c9fda
...
dd5c9fdaeb0e3d86270a8e85afb6db833d904fa7
authored
2012-05-21 08:42:24 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
hunting unnecessary selves (!)
1 parent
5b02d6c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
docs
modules/casper.js
docs
@
80a37607
Subproject commit
100ffeb02edee0d765efd29ef897c25343e24b2
d
Subproject commit
80a376076317c87d865e839252bb25f8af9ca77
d
...
...
modules/casper.js
View file @
dd5c9fd
...
...
@@ -376,11 +376,9 @@ Casper.prototype.each = function each(array, fn) {
this
.
log
(
"each() only works with arrays"
,
"error"
);
return
this
;
}
(
function
_each
(
self
)
{
array
.
forEach
(
function
_forEach
(
item
,
i
)
{
fn
.
call
(
self
,
self
,
item
,
i
);
});
})(
this
);
array
.
forEach
.
call
(
this
,
function
_forEach
(
item
,
i
)
{
fn
.
call
(
this
,
this
,
item
,
i
);
});
return
this
;
};
...
...
@@ -922,8 +920,8 @@ Casper.prototype.start = function start(location, then) {
},
this
.
options
.
timeout
,
this
);
}
if
(
utils
.
isString
(
location
)
&&
location
.
length
>
0
)
{
return
this
.
thenOpen
(
location
,
utils
.
isFunction
(
then
)
?
then
:
this
.
createStep
(
function
_step
(
self
)
{
self
.
log
(
"start page is loaded"
,
"debug"
);
return
this
.
thenOpen
(
location
,
utils
.
isFunction
(
then
)
?
then
:
this
.
createStep
(
function
_step
()
{
this
.
log
(
"start page is loaded"
,
"debug"
);
}));
}
return
this
;
...
...
Please
register
or
sign in
to post a comment