1;(function ($, window, document, undefined) { 2 'use strict'; 3 4 Foundation.libs.alert = { 5 name : 'alert', 6 7 version : '5.2.1', 8 9 settings : { 10 animation: 'fadeOut', 11 speed: 300, // fade out speed 12 callback: function (){} 13 }, 14 15 init : function (scope, method, options) { 16 this.bindings(method, options); 17 }, 18 19 events : function () { 20 var self = this, 21 S = this.S; 22 23 $(this.scope).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] a.close', function (e) { 24 var alertBox = S(this).closest('[' + self.attr_name() + ']'), 25 settings = alertBox.data(self.attr_name(true) + '-init') || self.settings; 26 27 e.preventDefault(); 28 alertBox[settings.animation](settings.speed, function () { 29 S(this).trigger('close').remove(); 30 settings.callback(); 31 }); 32 }); 33 }, 34 35 reflow : function () {} 36 }; 37}(jQuery, this, this.document));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.