mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-20 04:11:39 +02:00
simplify things to one line. pull #4104
This commit is contained in:
3
js/bootstrap-popover.js
vendored
3
js/bootstrap-popover.js
vendored
@@ -72,8 +72,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, destroy: function () {
|
, destroy: function () {
|
||||||
this.hide()
|
this.hide().$element.off(this.options.ns).removeData('popover')
|
||||||
this.$element.off(this.options.ns).removeData('popover')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
5
js/bootstrap-tooltip.js
vendored
5
js/bootstrap-tooltip.js
vendored
@@ -176,6 +176,8 @@
|
|||||||
$.support.transition && this.$tip.hasClass('fade') ?
|
$.support.transition && this.$tip.hasClass('fade') ?
|
||||||
removeWithAnimation() :
|
removeWithAnimation() :
|
||||||
$tip.remove()
|
$tip.remove()
|
||||||
|
|
||||||
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
, fixTitle: function () {
|
, fixTitle: function () {
|
||||||
@@ -236,8 +238,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, destroy: function () {
|
, destroy: function () {
|
||||||
this.hide()
|
this.hide().$element.off(this.options.ns).removeData('tooltip')
|
||||||
this.$element.off(this.options.ns).removeData('tooltip')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user