aboutsummaryrefslogtreecommitdiff
path: root/js/src/popover.js
diff options
context:
space:
mode:
authorBardi Harborow <[email protected]>2016-11-22 01:36:00 +1100
committerBardi Harborow <[email protected]>2016-11-24 11:59:55 +1100
commitc2616fb74e6bdc0cd46a5678a2c5cffcbe422106 (patch)
treec9f2db3c292861301816f255bbe25b9b45fdd8b2 /js/src/popover.js
parent26c16743fce73db5f85c9f16fe59242f876c5360 (diff)
downloadbootstrap-c2616fb74e6bdc0cd46a5678a2c5cffcbe422106.tar.xz
bootstrap-c2616fb74e6bdc0cd46a5678a2c5cffcbe422106.zip
Make JS compliant with the new ESLint rules.
Diffstat (limited to 'js/src/popover.js')
-rw-r--r--js/src/popover.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/popover.js b/js/src/popover.js
index 289853b32..01804eda6 100644
--- a/js/src/popover.js
+++ b/js/src/popover.js
@@ -107,11 +107,11 @@ const Popover = (($) => {
}
getTipElement() {
- return (this.tip = this.tip || $(this.config.template)[0])
+ return this.tip = this.tip || $(this.config.template)[0]
}
setContent() {
- let $tip = $(this.getTipElement())
+ const $tip = $(this.getTipElement())
// we use append for html objects to maintain js events
this.setElementContent($tip.find(Selector.TITLE), this.getTitle())
@@ -138,8 +138,8 @@ const Popover = (($) => {
static _jQueryInterface(config) {
return this.each(function () {
- let data = $(this).data(DATA_KEY)
- let _config = typeof config === 'object' ? config : null
+ let data = $(this).data(DATA_KEY)
+ const _config = typeof config === 'object' ? config : null
if (!data && /destroy|hide/.test(config)) {
return