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
dc3f7d38
Commit
dc3f7d38
authored
Aug 11, 2012
by
Rick Waldron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments about window.getComputedStyle in both locations.
parent
3722aef8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
css.js
src/css.js
+1
-1
support.js
src/support.js
+2
-4
No files found.
src/css.js
View file @
dc3f7d38
...
@@ -278,7 +278,7 @@ jQuery.extend({
...
@@ -278,7 +278,7 @@ jQuery.extend({
}
}
});
});
// NOTE: To any future maintainer, we've
used both
window.getComputedStyle
// NOTE: To any future maintainer, we've window.getComputedStyle
// because jsdom on node.js will break without it.
// because jsdom on node.js will break without it.
if
(
window
.
getComputedStyle
)
{
if
(
window
.
getComputedStyle
)
{
curCSS
=
function
(
elem
,
name
)
{
curCSS
=
function
(
elem
,
name
)
{
...
...
src/support.js
View file @
dc3f7d38
...
@@ -214,10 +214,8 @@ jQuery.support = (function() {
...
@@ -214,10 +214,8 @@ jQuery.support = (function() {
support
.
boxSizing
=
(
div
.
offsetWidth
===
4
);
support
.
boxSizing
=
(
div
.
offsetWidth
===
4
);
support
.
doesNotIncludeMarginInBodyOffset
=
(
body
.
offsetTop
!==
1
);
support
.
doesNotIncludeMarginInBodyOffset
=
(
body
.
offsetTop
!==
1
);
// NOTE: To any future maintainer, window.getComputedStyle was used here
// NOTE: To any future maintainer, we've window.getComputedStyle
// instead of getComputedStyle because it gave a better gzip size.
// because jsdom on node.js will break without it.
// The difference between window.getComputedStyle and getComputedStyle is
// 7 bytes
if
(
window
.
getComputedStyle
)
{
if
(
window
.
getComputedStyle
)
{
support
.
pixelPosition
=
(
window
.
getComputedStyle
(
div
,
null
)
||
{}
).
top
!==
"1%"
;
support
.
pixelPosition
=
(
window
.
getComputedStyle
(
div
,
null
)
||
{}
).
top
!==
"1%"
;
support
.
boxSizingReliable
=
(
window
.
getComputedStyle
(
div
,
null
)
||
{
width
:
"4px"
}
).
width
===
"4px"
;
support
.
boxSizingReliable
=
(
window
.
getComputedStyle
(
div
,
null
)
||
{
width
:
"4px"
}
).
width
===
"4px"
;
...
...
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