From: Chris Oyler Date: Thu, 17 Dec 2015 21:05:28 +0000 (-0800) Subject: updates JS plugins to use strings in passing class names to prevent mangling issue... X-Git-Tag: v6.1.0~5^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a950346b7238bb76fcdcef2f9058caa50ca2727e;p=thirdparty%2Ffoundation%2Ffoundation-sites.git updates JS plugins to use strings in passing class names to prevent mangling issue for Foundation.registerPlugin fn --- diff --git a/js/foundation.abide.js b/js/foundation.abide.js index ff5317437..9247c10bf 100644 --- a/js/foundation.abide.js +++ b/js/foundation.abide.js @@ -18,7 +18,7 @@ this._init(); this._events(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Abide'); } /** diff --git a/js/foundation.accordion.js b/js/foundation.accordion.js index 110d2181f..59a8651a4 100644 --- a/js/foundation.accordion.js +++ b/js/foundation.accordion.js @@ -19,7 +19,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Accordion'); Foundation.Keyboard.register('Accordion', { 'ENTER': 'toggle', 'SPACE': 'toggle', diff --git a/js/foundation.accordionMenu.js b/js/foundation.accordionMenu.js index ca168f39b..d698a9d8c 100644 --- a/js/foundation.accordionMenu.js +++ b/js/foundation.accordionMenu.js @@ -23,7 +23,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'AccordionMenu'); Foundation.Keyboard.register('AccordionMenu', { 'ENTER': 'toggle', 'SPACE': 'toggle', diff --git a/js/foundation.drilldown.js b/js/foundation.drilldown.js index 13e42740b..5cc79192f 100644 --- a/js/foundation.drilldown.js +++ b/js/foundation.drilldown.js @@ -22,7 +22,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Drilldown'); Foundation.Keyboard.register('Drilldown', { 'ENTER': 'open', 'SPACE': 'open', diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index c98ee0b3f..a6de91f22 100644 --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@ -17,7 +17,7 @@ this.options = $.extend({}, Dropdown.defaults, this.$element.data(), options); this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Dropdown'); Foundation.Keyboard.register('Dropdown', { 'ENTER': 'open', 'SPACE': 'open', diff --git a/js/foundation.dropdownMenu.js b/js/foundation.dropdownMenu.js index 0a0d55d34..96b35af46 100644 --- a/js/foundation.dropdownMenu.js +++ b/js/foundation.dropdownMenu.js @@ -22,7 +22,7 @@ Foundation.Nest.Feather(this.$element, 'dropdown'); this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'DropdownMenu'); Foundation.Keyboard.register('DropdownMenu', { 'ENTER': 'open', 'SPACE': 'open', diff --git a/js/foundation.equalizer.js b/js/foundation.equalizer.js index 7933da776..e7d0072f9 100644 --- a/js/foundation.equalizer.js +++ b/js/foundation.equalizer.js @@ -14,7 +14,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Equalizer'); } /** diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index 1e08a59b6..b75131a8f 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -23,7 +23,7 @@ this._init(); this._events(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Interchange'); } /** diff --git a/js/foundation.magellan.js b/js/foundation.magellan.js index db05a17a5..272e307af 100644 --- a/js/foundation.magellan.js +++ b/js/foundation.magellan.js @@ -18,7 +18,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Magellan'); } /** diff --git a/js/foundation.offcanvas.js b/js/foundation.offcanvas.js index 9e3131299..c704a37f5 100644 --- a/js/foundation.offcanvas.js +++ b/js/foundation.offcanvas.js @@ -23,7 +23,7 @@ function OffCanvas(element, options) { this._init(); this._events(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'OffCanvas'); } OffCanvas.defaults = { diff --git a/js/foundation.orbit.js b/js/foundation.orbit.js index 2ca37169f..15262ca91 100644 --- a/js/foundation.orbit.js +++ b/js/foundation.orbit.js @@ -20,7 +20,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Orbit'); Foundation.Keyboard.register('Orbit', { 'ltr': { 'ARROW_RIGHT': 'next', diff --git a/js/foundation.responsiveMenu.js b/js/foundation.responsiveMenu.js index 6718fe2a3..64fb85dda 100644 --- a/js/foundation.responsiveMenu.js +++ b/js/foundation.responsiveMenu.js @@ -48,7 +48,7 @@ this._init(); this._events(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'ResponsiveMenu'); } ResponsiveMenu.defaults = {}; diff --git a/js/foundation.responsiveToggle.js b/js/foundation.responsiveToggle.js index aecc98518..55083733a 100644 --- a/js/foundation.responsiveToggle.js +++ b/js/foundation.responsiveToggle.js @@ -21,7 +21,7 @@ function ResponsiveToggle(element, options) { this._init(); this._events(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'ResponsiveToggle'); } ResponsiveToggle.defaults = { diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 124993578..4b05d64a7 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -22,7 +22,7 @@ this.options = $.extend({}, Reveal.defaults, this.$element.data(), options); this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Reveal'); Foundation.Keyboard.register('Reveal', { 'ENTER': 'open', 'SPACE': 'open', diff --git a/js/foundation.slider.js b/js/foundation.slider.js index 0547fb907..773eb9a49 100644 --- a/js/foundation.slider.js +++ b/js/foundation.slider.js @@ -21,7 +21,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Slider'); Foundation.Keyboard.register('Slider', { 'ltr': { 'ARROW_RIGHT': 'increase', diff --git a/js/foundation.sticky.js b/js/foundation.sticky.js index b3166ee0f..cf17b611b 100644 --- a/js/foundation.sticky.js +++ b/js/foundation.sticky.js @@ -19,7 +19,7 @@ this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Sticky'); } Sticky.defaults = { /** @@ -312,7 +312,7 @@ css[stickTo] = 0; css[notStuckTo] = anchorPt; } - + css['left'] = ''; this.isStuck = false; this.$element.removeClass('is-stuck is-at-' + stickTo) diff --git a/js/foundation.tabs.js b/js/foundation.tabs.js index ade013511..fc2409c5a 100644 --- a/js/foundation.tabs.js +++ b/js/foundation.tabs.js @@ -19,7 +19,7 @@ this.options = $.extend({}, Tabs.defaults, this.$element.data(), options); this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Tabs'); Foundation.Keyboard.register('Tabs', { 'ENTER': 'open', 'SPACE': 'open', diff --git a/js/foundation.toggler.js b/js/foundation.toggler.js index 4773c44e3..c6889aea9 100644 --- a/js/foundation.toggler.js +++ b/js/foundation.toggler.js @@ -22,7 +22,7 @@ this._init(); this._events(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Toggler'); } Toggler.defaults = { diff --git a/js/foundation.tooltip.js b/js/foundation.tooltip.js index 371e18aad..b0039b83f 100644 --- a/js/foundation.tooltip.js +++ b/js/foundation.tooltip.js @@ -22,7 +22,7 @@ this.isClick = false; this._init(); - Foundation.registerPlugin(this); + Foundation.registerPlugin(this, 'Tooltip'); } Tooltip.defaults = {