mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 21:39:08 +02:00
simplify code into a single line
This commit is contained in:
4
js/bootstrap-popover.js
vendored
4
js/bootstrap-popover.js
vendored
@@ -72,9 +72,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, destroy: function () {
|
, destroy: function () {
|
||||||
var $e = this.$element
|
this.$element.off().removeData('popover')
|
||||||
$e.off()
|
|
||||||
$e.removeData('popover')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
4
js/bootstrap-tooltip.js
vendored
4
js/bootstrap-tooltip.js
vendored
@@ -236,9 +236,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, destroy: function () {
|
, destroy: function () {
|
||||||
var $e = this.$element
|
this.$element.off().removeData('tooltip')
|
||||||
$e.off()
|
|
||||||
$e.removeData('tooltip')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user