summaryrefslogtreecommitdiffstats
path: root/core/src/Polyfill/tooltip.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-25 18:19:42 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-01 17:16:09 +0200
commitb9bc2417e7a8dc81feb0abe20359bedaf864f790 (patch)
tree61b47fbf37c1d168da8625224debde9e6a985348 /core/src/Polyfill/tooltip.js
parent7fb651235128dcbca8a6683b5cdafdf835f46300 (diff)
downloadnextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.tar.gz
nextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.zip
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/Polyfill/tooltip.js')
-rw-r--r--core/src/Polyfill/tooltip.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/Polyfill/tooltip.js b/core/src/Polyfill/tooltip.js
index 0ad3686d016..08cc58c338c 100644
--- a/core/src/Polyfill/tooltip.js
+++ b/core/src/Polyfill/tooltip.js
@@ -22,16 +22,16 @@
$.prototype.tooltip = (function(tooltip) {
return function(config) {
try {
- return tooltip.call(this, config);
+ return tooltip.call(this, config)
} catch (ex) {
if (ex instanceof TypeError && config === 'destroy') {
- console.error('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed');
- return tooltip.call(this, 'dispose');
+ console.error('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed')
+ return tooltip.call(this, 'dispose')
}
if (ex instanceof TypeError && config === 'fixTitle') {
- console.error('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed');
- return tooltip.call(this, '_fixTitle');
+ console.error('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed')
+ return tooltip.call(this, '_fixTitle')
}
}
- };
-})($.prototype.tooltip);
+ }
+})($.prototype.tooltip)