From: SassNinja Date: Wed, 6 Nov 2019 13:36:41 +0000 (+0100) Subject: feat: add zfPluginBase attr to provide access to real instance X-Git-Tag: v6.6.0~1^2~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbcada62761e6cf7deac03fb6cb83bc853d13ebc;p=thirdparty%2Ffoundation%2Ffoundation-sites.git feat: add zfPluginBase attr to provide access to real instance Since this special plugin overrides zfPlugin (by design) the new zfPluginBase provides the (only) possiblity to access the real ReponsiveAccordionTabs instance if not having called the contructor yourself. --- diff --git a/js/foundation.responsiveAccordionTabs.js b/js/foundation.responsiveAccordionTabs.js index 0233d9f89..0828b4b69 100644 --- a/js/foundation.responsiveAccordionTabs.js +++ b/js/foundation.responsiveAccordionTabs.js @@ -51,6 +51,7 @@ class ResponsiveAccordionTabs extends Plugin{ */ _setup(element, options) { this.$element = $(element); + this.$element.data('zfPluginBase'); this.options = $.extend({}, ResponsiveAccordionTabs.defaults, this.$element.data(), options); this.rules = this.$element.data('responsive-accordion-tabs');