aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/.eslintrc.json2
-rw-r--r--js/src/popover.js3
-rw-r--r--js/src/tooltip.js3
3 files changed, 5 insertions, 3 deletions
diff --git a/js/.eslintrc.json b/js/.eslintrc.json
index fdca9c1dd..cc4e58ebd 100644
--- a/js/.eslintrc.json
+++ b/js/.eslintrc.json
@@ -74,7 +74,7 @@
"no-param-reassign": "off",
"no-proto": "error",
"no-restricted-properties": "error",
- "no-return-assign": "off",
+ "no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
diff --git a/js/src/popover.js b/js/src/popover.js
index 7639e3e20..f5820ecbe 100644
--- a/js/src/popover.js
+++ b/js/src/popover.js
@@ -114,7 +114,8 @@ const Popover = (($) => {
}
getTipElement() {
- return this.tip = this.tip || $(this.config.template)[0]
+ this.tip = this.tip || $(this.config.template)[0]
+ return this.tip
}
setContent() {
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 721f04481..7dfe9dfc0 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -415,7 +415,8 @@ const Tooltip = (($) => {
}
getTipElement() {
- return this.tip = this.tip || $(this.config.template)[0]
+ this.tip = this.tip || $(this.config.template)[0]
+ return this.tip
}
setContent() {