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
9910b9dd
...
9910b9dd4c8f0cb861b60ad2420eba21890ef986
authored
2012-06-24 10:42:46 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
reverted
a3ca065c
(breaks bootstrap.js) - reopens #79
1 parent
77f99b04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
9910b9d
...
...
@@ -35,8 +35,6 @@ if (!phantom || phantom.version.major !== 1 || phantom.version.minor < 5) {
phantom
.
exit
(
1
);
}
var
system
=
require
(
'system'
);
(
function
bootstrap
(
global
)
{
"use strict"
;
/**
...
...
@@ -73,7 +71,7 @@ var system = require('system');
// casper root path
if
(
!
phantom
.
casperPath
)
{
try
{
phantom
.
casperPath
=
syste
m
.
args
.
map
(
function
_map
(
i
)
{
phantom
.
casperPath
=
phanto
m
.
args
.
map
(
function
_map
(
i
)
{
var
match
=
i
.
match
(
/^--casper-path=
(
.*
)
/
);
if
(
match
)
{
return
fs
.
absolute
(
match
[
1
]);
...
...
@@ -234,7 +232,7 @@ var system = require('system');
phantom
.
Casper
=
require
(
'casper'
).
Casper
;
// casper cli args
phantom
.
casperArgs
=
require
(
'cli'
).
parse
(
syste
m
.
args
);
phantom
.
casperArgs
=
require
(
'cli'
).
parse
(
phanto
m
.
args
);
// loaded status
phantom
.
casperLoaded
=
true
;
...
...
Please
register
or
sign in
to post a comment