From e42ce3bc85b7f203480e0bd57ada5c6bb9eb1edf Mon Sep 17 00:00:00 2001 From: James Garner Date: Mon, 11 Apr 2016 10:17:36 +0100 Subject: [PATCH] Update foundation.tooltip.js to enable to parse a postionClass when creating Tooltips using js Changed code so the positionClass checks inside this.options rather than just looking at the elements css --- js/foundation.tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.tooltip.js b/js/foundation.tooltip.js index 827fcd298..ff568baf5 100644 --- a/js/foundation.tooltip.js +++ b/js/foundation.tooltip.js @@ -35,7 +35,7 @@ class Tooltip { _init() { var elemId = this.$element.attr('aria-describedby') || Foundation.GetYoDigits(6, 'tooltip'); - this.options.positionClass = this._getPositionClass(this.$element); + this.options.positionClass = this.options.positionClass || this._getPositionClass(this.$element); this.options.tipText = this.options.tipText || this.$element.attr('title'); this.template = this.options.template ? $(this.options.template) : this._buildTemplate(elemId); -- 2.47.2