From 47ea24e8a06b0c0850a553d2ff50f780039f0e61 Mon Sep 17 00:00:00 2001 From: Evan Lask Date: Wed, 9 Dec 2015 11:53:59 -0700 Subject: [PATCH] =?utf8?q?addBack(=E2=80=98*=E2=80=99)=20will=20always=20a?= =?utf8?q?dd=20the=20parent=20element=20to=20$elem=20and=20then=20the=20fi?= =?utf8?q?rst=20plugin=20in=20the=20list=20gets=20initialized=20upon=20it?= =?utf8?q?=20(typically=20abide).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit it should be filtered for the plugin that is being initialized --- js/foundation.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.core.js b/js/foundation.core.js index 754ba3a51..bed377a53 100644 --- a/js/foundation.core.js +++ b/js/foundation.core.js @@ -158,7 +158,7 @@ var Foundation = { var plugin = _this._plugins[name]; // Localize the search to all elements inside elem, as well as elem itself, unless elem === document - var $elem = $(elem).find('[data-'+name+']').addBack('*'); + var $elem = $(elem).find('[data-'+name+']').addBack('[data-'+name+']'); // For each plugin found, initialize it $elem.each(function() { -- 2.47.2