{I" class:EFI"ProcessedAsset;FI"logical_path;FI"bootstrap/alert.js;TI" pathname;FI"~/Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bootstrap-sass-3.3.4.1/assets/javascripts/bootstrap/alert.js;TI"content_type;FI"application/javascript;FI" mtime;Fl+~†UI" length;FiÕI" digest;F"%1a1a2cab8106359423de574b0a16baebI" source;FI"Õ/* ======================================================================== * Bootstrap: alert.js v3.3.4 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // ALERT CLASS DEFINITION // ====================== var dismiss = '[data-dismiss="alert"]' var Alert = function (el) { $(el).on('click', dismiss, this.close) } Alert.VERSION = '3.3.4' Alert.TRANSITION_DURATION = 150 Alert.prototype.close = function (e) { var $this = $(this) var selector = $this.attr('data-target') if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } var $parent = $(selector) if (e) e.preventDefault() if (!$parent.length) { $parent = $this.closest('.alert') } $parent.trigger(e = $.Event('close.bs.alert')) if (e.isDefaultPrevented()) return $parent.removeClass('in') function removeElement() { // detach from parent, fire event then clean up data $parent.detach().trigger('closed.bs.alert').remove() } $.support.transition && $parent.hasClass('fade') ? $parent .one('bsTransitionEnd', removeElement) .emulateTransitionEnd(Alert.TRANSITION_DURATION) : removeElement() } // ALERT PLUGIN DEFINITION // ======================= function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) } var old = $.fn.alert $.fn.alert = Plugin $.fn.alert.Constructor = Alert // ALERT NO CONFLICT // ================= $.fn.alert.noConflict = function () { $.fn.alert = old return this } // ALERT DATA-API // ============== $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) }(jQuery); ;TI"dependency_digest;F"%3e31f9961c479094f58340d3d9a16fb5I"required_paths;F[I"~/Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bootstrap-sass-3.3.4.1/assets/javascripts/bootstrap/alert.js;TI"dependency_paths;F[{I" path;FI"~/Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bootstrap-sass-3.3.4.1/assets/javascripts/bootstrap/alert.js;TI" mtime;FI"2015-03-23T22:32:46+01:00;FI" digest;F"%2188a8b2d383664230585cff2efeaa88I" _version;F"%7015acab0e7ee10d673b8d49cecfb54b