mirror of https://github.com/twbs/bootstrap.git
simplify code into a single line
This commit is contained in:
parent
af88f54e5d
commit
3a5b4cc7df
|
@ -72,9 +72,7 @@
|
|||
}
|
||||
|
||||
, destroy: function () {
|
||||
var $e = this.$element
|
||||
$e.off()
|
||||
$e.removeData('popover')
|
||||
this.$element.off().removeData('popover')
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
@ -236,9 +236,7 @@
|
|||
}
|
||||
|
||||
, destroy: function () {
|
||||
var $e = this.$element
|
||||
$e.off()
|
||||
$e.removeData('tooltip')
|
||||
this.$element.off().removeData('tooltip')
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue