vendor/assets/javascripts/foundation/app.js in zurb-foundation-2.2.1.1 vs vendor/assets/javascripts/foundation/app.js in zurb-foundation-2.2.1.2
- old
+ new
@@ -19,16 +19,12 @@
//Show Tab Content
$(contentLocation).closest('.tabs-content').children('li').hide();
$(contentLocation).css('display', 'block');
}
- $('dl.tabs').each(function () {
- //Get all tabs
- var tabs = $(this).children('dd').children('a');
- tabs.click(function (e) {
- activateTab($(this));
- });
- });
+ $('dl.tabs dd a').live('click', function (event) {
+ activateTab($(this));
+ });
if (window.location.hash) {
activateTab($('a[href="' + window.location.hash + '"]'));
$.foundation.customForms.appendCustomMarkup();
}