From 6063b0dc659e7ba3a83cfc9502ad7872f8201a32 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Thu, 27 Jul 2017 12:58:22 +0200 Subject: Enable the `no-return-assign` rule. --- js/src/popover.js | 3 ++- js/src/tooltip.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'js/src') 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() { -- cgit v1.2.3