Skip to content

Commit

Permalink
Update foundation.alert.js
Browse files Browse the repository at this point in the history
fix on-the-fly alert
  • Loading branch information
littlexiang committed Dec 11, 2013
1 parent 0571186 commit 0261d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/foundation/foundation.alert.js
Expand Up @@ -19,7 +19,7 @@
events : function () {
$(this.scope).off('.alert').on('click.fndtn.alert', '[data-alert] a.close', function (e) {
var alertBox = $(this).closest("[data-alert]"),
settings = alertBox.data('alert-init');
settings = alertBox.data('alert-init') || Foundation.libs.alert.settings;

e.preventDefault();
alertBox[settings.animation](settings.speed, function () {
Expand All @@ -31,4 +31,4 @@

reflow : function () {}
};
}(jQuery, this, this.document));
}(jQuery, this, this.document));

0 comments on commit 0261d71

Please sign in to comment.