]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
updates JS plugins to use strings in passing class names to prevent mangling issue...
authorChris Oyler <chris@zurb.com>
Thu, 17 Dec 2015 21:05:28 +0000 (13:05 -0800)
committerChris Oyler <chris@zurb.com>
Thu, 17 Dec 2015 21:05:28 +0000 (13:05 -0800)
19 files changed:
js/foundation.abide.js
js/foundation.accordion.js
js/foundation.accordionMenu.js
js/foundation.drilldown.js
js/foundation.dropdown.js
js/foundation.dropdownMenu.js
js/foundation.equalizer.js
js/foundation.interchange.js
js/foundation.magellan.js
js/foundation.offcanvas.js
js/foundation.orbit.js
js/foundation.responsiveMenu.js
js/foundation.responsiveToggle.js
js/foundation.reveal.js
js/foundation.slider.js
js/foundation.sticky.js
js/foundation.tabs.js
js/foundation.toggler.js
js/foundation.tooltip.js

index ff5317437e92d89b63eecf8d42e42e33e1adbe0c..9247c10bff90f4deb7914ce0316a02ba1f198a0d 100644 (file)
@@ -18,7 +18,7 @@
     this._init();
     this._events();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Abide');
   }
 
   /**
index 110d2181f26f59ae8c654c373d9d4ddcbff19e07..59a8651a4a3fd41f2e71e6ccfc70763406802bcc 100644 (file)
@@ -19,7 +19,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Accordion');
     Foundation.Keyboard.register('Accordion', {
       'ENTER': 'toggle',
       'SPACE': 'toggle',
index ca168f39b3f33aecec81a2e383966afc4683963b..d698a9d8cf714886abb281b7b07db0ed833b7234 100644 (file)
@@ -23,7 +23,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'AccordionMenu');
     Foundation.Keyboard.register('AccordionMenu', {
       'ENTER': 'toggle',
       'SPACE': 'toggle',
index 13e42740b9f792e29536ff8857e8570ee4ff7e97..5cc79192f01fad617f4d728a9f39887bda92b935 100644 (file)
@@ -22,7 +22,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Drilldown');
     Foundation.Keyboard.register('Drilldown', {
       'ENTER': 'open',
       'SPACE': 'open',
index c98ee0b3fe66969c4f9d3cb8e4d0a57cbf41d525..a6de91f22d7fe6414643915f951d756ce5a8fb33 100644 (file)
@@ -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',
index 0a0d55d347a3be34aaa99b43574ae8035db5d19f..96b35af4656e744210e1c9365889fce5ece57612 100644 (file)
@@ -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',
index 7933da776db74ae838dced5c26155d361d8cdbfc..e7d0072f98656e01b9028966584d71d86f198287 100644 (file)
@@ -14,7 +14,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Equalizer');
   }
 
   /**
index 1e08a59b6ae860ede6f9ec0a4394d4b02c9f9fe6..b75131a8f9a53187fa46cbbd973fca717fbdf26d 100644 (file)
@@ -23,7 +23,7 @@
     this._init();
     this._events();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Interchange');
   }
 
   /**
index db05a17a580009aba1dcdbdea33d72cc210e9062..272e307afc203497e99d73cdc1eed42c70838f91 100644 (file)
@@ -18,7 +18,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Magellan');
   }
 
   /**
index 9e3131299fd06fc521b6f13d12c3a4712eccffad..c704a37f50fcf6c06fea8cec4a13b914b57f14f1 100644 (file)
@@ -23,7 +23,7 @@ function OffCanvas(element, options) {
   this._init();
   this._events();
 
-  Foundation.registerPlugin(this);
+  Foundation.registerPlugin(this, 'OffCanvas');
 }
 
 OffCanvas.defaults = {
index 2ca37169fbcdeae25d1ae762350f63859ef1f267..15262ca919de440057080cb786760e83bf819c96 100644 (file)
@@ -20,7 +20,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Orbit');
     Foundation.Keyboard.register('Orbit', {
         'ltr': {
           'ARROW_RIGHT': 'next',
index 6718fe2a32565c743b5f09e4a897ff095b4f5cf8..64fb85dda74036cf02ee6e4691a6298800f06e6c 100644 (file)
@@ -48,7 +48,7 @@
     this._init();
     this._events();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'ResponsiveMenu');
   }
 
   ResponsiveMenu.defaults = {};
index aecc9851831662b573f236e768fd6551c572dece..55083733a1f29c5e5949a3f6d3b91b5a842a0455 100644 (file)
@@ -21,7 +21,7 @@ function ResponsiveToggle(element, options) {
   this._init();
   this._events();
 
-  Foundation.registerPlugin(this);
+  Foundation.registerPlugin(this, 'ResponsiveToggle');
 }
 
 ResponsiveToggle.defaults = {
index 12499357832b2c7bf712e28f03b70e4afc3b688f..4b05d64a7f9565f110e97f745fa20e381097136e 100644 (file)
@@ -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',
index 0547fb907f3f21d779b719a28de9cc6d66e1f5ff..773eb9a4929ac8054f39a0f8485388b0c9664a94 100644 (file)
@@ -21,7 +21,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Slider');
     Foundation.Keyboard.register('Slider', {
       'ltr': {
         'ARROW_RIGHT': 'increase',
index b3166ee0f53212e72c5793a5636e0d53fa49f6f8..cf17b611b28ff3d58456029a49d3d16145c07cc4 100644 (file)
@@ -19,7 +19,7 @@
 
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Sticky');
   }
   Sticky.defaults = {
     /**
       css[stickTo] = 0;
       css[notStuckTo] = anchorPt;
     }
-    
+
     css['left'] = '';
     this.isStuck = false;
     this.$element.removeClass('is-stuck is-at-' + stickTo)
index ade01351109eceab8d7b8d227113dc7f01a48145..fc2409c5ad06c297a6f130c11b900bd8ead92af6 100644 (file)
@@ -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',
index 4773c44e30afdc03b3d36c669ded7fa471798e7c..c6889aea9578bef50d32dc698580944c905a20e3 100644 (file)
@@ -22,7 +22,7 @@
     this._init();
     this._events();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Toggler');
   }
 
   Toggler.defaults = {
index 371e18aadcbfe524fc043321e94cd007b43dfe2a..b0039b83f8efa22b9a17a327abb9b3bf47b149e1 100644 (file)
@@ -22,7 +22,7 @@
     this.isClick = false;
     this._init();
 
-    Foundation.registerPlugin(this);
+    Foundation.registerPlugin(this, 'Tooltip');
   }
 
   Tooltip.defaults = {