From cb2ef1eff4cbfad8998f94adf7f61cdf574ca100 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 8 May 2014 16:35:03 -0700 Subject: grunt dist --- dist/js/bootstrap.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dist/js/bootstrap.js') diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 886209b31..4ce288b22 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -99,7 +99,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re $parent.removeClass('in') function removeElement() { - $parent.trigger('closed.bs.alert').remove() + // detach from parent, fire event then clean up data + $parent.detach().trigger('closed.bs.alert').remove() } $.support.transition && $parent.hasClass('fade') ? @@ -178,9 +179,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re state = state + 'Text' - if (!data.resetText) $el.data('resetText', $el[val]()) + if (data.resetText == null) $el.data('resetText', $el[val]()) - $el[val](data[state] || this.options[state]) + $el[val](data[state] == null ? this.options[state] : data[state]) // push to event loop to allow forms to submit setTimeout($.proxy(function () { @@ -1535,7 +1536,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re placement: 'right', trigger: 'click', content: '', - template: '

' + template: '' }) -- cgit v1.2.3