1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

simplify things to one line. pull #4104

This commit is contained in:
Jon Stevens 2012-07-22 14:19:11 -07:00
parent 117f65d431
commit 393f4a7b42
2 changed files with 4 additions and 4 deletions

View file

@ -72,8 +72,7 @@
}
, destroy: function () {
this.hide()
this.$element.off(this.options.ns).removeData('popover')
this.hide().$element.off(this.options.ns).removeData('popover')
}
})

View file

@ -176,6 +176,8 @@
$.support.transition && this.$tip.hasClass('fade') ?
removeWithAnimation() :
$tip.remove()
return this
}
, fixTitle: function () {
@ -236,8 +238,7 @@
}
, destroy: function () {
this.hide()
this.$element.off(this.options.ns).removeData('tooltip')
this.hide().$element.off(this.options.ns).removeData('tooltip')
}
}