Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
e4d6fbf7
Commit
e4d6fbf7
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Plain Diff
Merge pull request #16023 from twbs/doc-body
Affix: $('body') => $(document.body)
parents
253dfc0d
a5243ad3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/affix.js
+1
-1
js/affix.js
with
1 addition
and
1 deletion
+1
-1
js/affix.js
+
1
-
1
View file @
e4d6fbf7
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
var
offset
=
this
.
options
.
offset
var
offset
=
this
.
options
.
offset
var
offsetTop
=
offset
.
top
var
offsetTop
=
offset
.
top
var
offsetBottom
=
offset
.
bottom
var
offsetBottom
=
offset
.
bottom
var
scrollHeight
=
$
(
'
body
'
).
height
()
var
scrollHeight
=
$
(
document
.
body
).
height
()
if
(
typeof
offset
!=
'
object
'
)
offsetBottom
=
offsetTop
=
offset
if
(
typeof
offset
!=
'
object
'
)
offsetBottom
=
offsetTop
=
offset
if
(
typeof
offsetTop
==
'
function
'
)
offsetTop
=
offset
.
top
(
this
.
$element
)
if
(
typeof
offsetTop
==
'
function
'
)
offsetTop
=
offset
.
top
(
this
.
$element
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets