mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-01 19:30:31 +02:00
whitespace in tooltip + don't pass empty selector to $() in dropdown.js
This commit is contained in:
5
docs/assets/js/bootstrap-dropdown.js
vendored
5
docs/assets/js/bootstrap-dropdown.js
vendored
@@ -115,8 +115,9 @@
|
|||||||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = $(selector)
|
$parent = selector && $(selector)
|
||||||
$parent.length || ($parent = $this.parent())
|
|
||||||
|
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||||
|
|
||||||
return $parent
|
return $parent
|
||||||
}
|
}
|
||||||
|
1
docs/assets/js/bootstrap-tooltip.js
vendored
1
docs/assets/js/bootstrap-tooltip.js
vendored
@@ -192,7 +192,6 @@
|
|||||||
|
|
||||||
, getPosition: function () {
|
, getPosition: function () {
|
||||||
var el = this.$element[0]
|
var el = this.$element[0]
|
||||||
|
|
||||||
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
||||||
width: el.offsetWidth
|
width: el.offsetWidth
|
||||||
, height: el.offsetHeight
|
, height: el.offsetHeight
|
||||||
|
6
docs/assets/js/bootstrap.js
vendored
6
docs/assets/js/bootstrap.js
vendored
@@ -726,8 +726,9 @@
|
|||||||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = $(selector)
|
$parent = selector && $(selector)
|
||||||
$parent.length || ($parent = $this.parent())
|
|
||||||
|
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||||
|
|
||||||
return $parent
|
return $parent
|
||||||
}
|
}
|
||||||
@@ -1208,7 +1209,6 @@
|
|||||||
|
|
||||||
, getPosition: function () {
|
, getPosition: function () {
|
||||||
var el = this.$element[0]
|
var el = this.$element[0]
|
||||||
|
|
||||||
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
||||||
width: el.offsetWidth
|
width: el.offsetWidth
|
||||||
, height: el.offsetHeight
|
, height: el.offsetHeight
|
||||||
|
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
5
js/bootstrap-dropdown.js
vendored
5
js/bootstrap-dropdown.js
vendored
@@ -115,8 +115,9 @@
|
|||||||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = $(selector)
|
$parent = selector && $(selector)
|
||||||
$parent.length || ($parent = $this.parent())
|
|
||||||
|
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||||
|
|
||||||
return $parent
|
return $parent
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user