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
8f8d8aad
...
8f8d8aad003fa0ad84ec39b3b5444d2309097842
authored
2013-05-04 16:12:17 -0600
by
hexid
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Remove redundant function and fix spelling error
1 parent
0ddc1b6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
modules/clientutils.js
modules/clientutils.js
View file @
8f8d8aa
...
...
@@ -136,7 +136,7 @@
this
.
elementVisible
=
function
elementVisible
(
elem
)
{
try
{
var
comp
=
window
.
getComputedStyle
(
elem
,
null
);
return
comp
.
visib
l
ility
!==
'hidden'
&&
return
comp
.
visibility
!==
'hidden'
&&
comp
.
display
!==
'none'
&&
elem
.
offsetHeight
>
0
&&
elem
.
offsetWidth
>
0
;
...
...
@@ -825,10 +825,7 @@
* @return Boolean
*/
this
.
visible
=
function
visible
(
selector
)
{
var
eleVisible
=
this
.
elementVisible
;
return
[].
some
.
call
(
this
.
findAll
(
selector
),
function
(
el
)
{
return
eleVisible
(
el
);
});
return
[].
some
.
call
(
this
.
findAll
(
selector
),
this
.
elementVisible
);
};
};
})(
typeof
exports
===
"object"
?
exports
:
window
);
...
...
Please
register
or
sign in
to post a comment