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
20ff4617
...
20ff46173aa9aa3b6a5be86d94a523c3989f31c9
authored
2013-02-24 21:23:14 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed erroneous version checks
1 parent
e62a620e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
20ff461
...
...
@@ -82,11 +82,10 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
// required version check
if
(
version
.
major
!==
1
)
{
return
__die
(
'CasperJS needs PhantomJS v1.x'
);
}
if
(
version
.
minor
<
8
)
{
}
if
(
version
.
minor
<
8
)
{
return
__die
(
'CasperJS needs at least PhantomJS v1.8 or later.'
);
}
if
(
version
.
patch
<
1
)
{
if
(
version
.
minor
===
8
&&
version
.
patch
<
1
)
{
return
__die
(
'CasperJS needs at least PhantomJS v1.8.1 or later.'
);
}
})(
phantom
.
version
);
...
...
Please
register
or
sign in
to post a comment