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
bc348bc3
...
bc348bc3bd2fa7c3cf1dcebdd997d4dd704909f1
authored
2013-08-19 10:21:11 -0600
by
hexid
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refactor to remove unnecessary entries in paths array
1 parent
824d3fe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
bc348bc
...
...
@@ -189,9 +189,9 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
var
extensions
=
[
'js'
,
'coffee'
,
'json'
];
var
basenames
=
[
path
,
path
+
'/index'
];
var
paths
=
[];
extensions
.
forEach
(
function
(
extension
)
{
basenames
.
forEach
(
function
(
basename
)
{
paths
.
push
(
fs
.
pathJoin
(
dir
,
basename
));
basenames
.
forEach
(
function
(
basename
)
{
paths
.
push
(
fs
.
pathJoin
(
dir
,
basename
));
extensions
.
forEach
(
function
(
extension
)
{
paths
.
push
(
fs
.
pathJoin
(
dir
,
[
basename
,
extension
].
join
(
'.'
)));
});
});
...
...
Please
register
or
sign in
to post a comment