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
0ddc1b6c
...
0ddc1b6c0a58f03c5e5e64100e2f18743086fcbf
authored
2013-05-04 16:01:39 -0600
by
hexid
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix call to Array.map
1 parent
adb1ad9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
0ddc1b6
...
...
@@ -909,7 +909,7 @@ Casper.prototype.getElementsAttr = function getElementsAttr(selector, attribute)
"use strict"
;
this
.
checkStarted
();
return
this
.
evaluate
(
function
_evaluate
(
selector
,
attribute
)
{
return
Array
.
prototype
.
map
.
call
(
__utils__
.
findAll
(
selector
),
function
(
element
)
{
return
[]
.
map
.
call
(
__utils__
.
findAll
(
selector
),
function
(
element
)
{
return
element
.
getAttribute
(
attribute
);
});
},
selector
,
attribute
);
...
...
Please
register
or
sign in
to post a comment