2 (function ($, window
, document
, undefined) {
5 Foundation
.libs
.alert
= {
11 callback: function () {
15 init: function (scope
, method
, options
) {
16 this.bindings(method
, options
);
23 $(this.scope
).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] .close', function (e
) {
24 var alertBox
= S(this).closest('[' + self
.attr_name() + ']'),
25 settings
= alertBox
.data(self
.attr_name(true) + '-init') || self
.settings
;
28 if (Modernizr
.csstransitions
) {
29 alertBox
.addClass('alert-close');
30 alertBox
.on('transitionend webkitTransitionEnd oTransitionEnd', function (e
) {
31 S(this).trigger('close').trigger('close.fndtn.alert').remove();
35 alertBox
.fadeOut(300, function () {
36 S(this).trigger('close').trigger('close.fndtn.alert').remove();
46 }(jQuery
, window
, window
.document
));