Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
47293ebe
Commit
47293ebe
authored
Dec 03, 2009
by
jeresig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing unnecessary parens from :hidden.
parent
0f0fd1ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
css.js
src/css.js
+4
-3
No files found.
src/css.js
View file @
47293ebe
...
@@ -203,11 +203,12 @@ if ( jQuery.expr && jQuery.expr.filters ) {
...
@@ -203,11 +203,12 @@ if ( jQuery.expr && jQuery.expr.filters ) {
jQuery
.
expr
.
filters
.
hidden
=
function
(
elem
){
jQuery
.
expr
.
filters
.
hidden
=
function
(
elem
){
var
width
=
elem
.
offsetWidth
,
height
=
elem
.
offsetHeight
,
var
width
=
elem
.
offsetWidth
,
height
=
elem
.
offsetHeight
,
force
=
/^tr$/i
.
test
(
elem
.
nodeName
);
// ticket #4512
force
=
/^tr$/i
.
test
(
elem
.
nodeName
);
// ticket #4512
return
(
width
===
0
&&
height
===
0
&&
!
force
)
?
return
width
===
0
&&
height
===
0
&&
!
force
?
true
:
true
:
(
width
!==
0
&&
height
!==
0
&&
!
force
)
?
width
!==
0
&&
height
!==
0
&&
!
force
?
false
:
false
:
!!
(
jQuery
.
curCSS
(
elem
,
"display"
)
===
"none"
)
;
jQuery
.
curCSS
(
elem
,
"display"
)
===
"none"
;
};
};
jQuery
.
expr
.
filters
.
visible
=
function
(
elem
){
jQuery
.
expr
.
filters
.
visible
=
function
(
elem
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment