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
a04d47a8
...
a04d47a8dd8b29f8574771241eacdbddbff534e1
authored
2012-10-24 11:29:30 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed Casper.reload() which wasn't working properly
1 parent
02a19f6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
modules/casper.js
modules/casper.js
View file @
a04d47a
...
...
@@ -1133,13 +1133,13 @@ Casper.prototype.open = function open(location, settings) {
Casper
.
prototype
.
reload
=
function
reload
(
then
)
{
"use strict"
;
this
.
checkStarted
();
this
.
evaluate
(
function
()
{
window
.
location
.
reload
();
// window.location.reload() is broken under phantomjs
this
.
then
(
function
()
{
this
.
open
(
this
.
getCurrentUrl
());
});
if
(
then
&&
utils
.
isFunction
(
then
))
{
if
(
utils
.
isFunction
(
then
))
{
this
.
then
(
this
.
createStep
(
then
));
}
return
this
;
};
/**
...
...
Please
register
or
sign in
to post a comment