Skip to content
GitLab
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
ead17b7c
Commit
ead17b7c
authored
11 years ago
by
Zlatan Vasović
Committed by
Chris Rebert
11 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix
#12375
: stop using document.body.scrollTop as it's deprecated in the strict mode
Closes #12377
parent
0f366e03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/js/bootstrap.js
+1
-1
dist/js/bootstrap.js
js/tooltip.js
+1
-1
js/tooltip.js
with
2 additions
and
2 deletions
+2
-2
dist/js/bootstrap.js
+
1
-
1
View file @
ead17b7c
...
@@ -1208,7 +1208,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
...
@@ -1208,7 +1208,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
var
$parent
=
this
.
$element
.
parent
()
var
$parent
=
this
.
$element
.
parent
()
var
orgPlacement
=
placement
var
orgPlacement
=
placement
var
docScroll
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
var
docScroll
=
document
.
documentElement
.
scrollTop
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
...
...
This diff is collapsed.
Click to expand it.
js/tooltip.js
+
1
-
1
View file @
ead17b7c
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
var
$parent
=
this
.
$element
.
parent
()
var
$parent
=
this
.
$element
.
parent
()
var
orgPlacement
=
placement
var
orgPlacement
=
placement
var
docScroll
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
var
docScroll
=
document
.
documentElement
.
scrollTop
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
...
...
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