1/* ======================================================================== 2 * Bootstrap: transition.js v3.4.0 3 * https://getbootstrap.com/docs/3.4/javascript/#transitions 4 * ======================================================================== 5 * Copyright 2011-2018 Twitter, Inc. 6 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 * ======================================================================== */ 8 9+(function($) { 10 "use strict"; 11 12 // CSS TRANSITION SUPPORT (Shoutout: https://modernizr.com/) 13 // ============================================================ 14 15 function transitionEnd() { 16 var el = document.createElement("bootstrap"); 17 18 var transEndEventNames = { 19 WebkitTransition: "webkitTransitionEnd", 20 MozTransition: "transitionend", 21 OTransition: "oTransitionEnd otransitionend", 22 transition: "transitionend" 23 }; 24 25 for (var name in transEndEventNames) { 26 if (el.style[name] !== undefined) { 27 return { end: transEndEventNames[name] }; 28 } 29 } 30 31 return false; // explicit for ie8 ( ._.) 32 } 33 34 // https://blog.alexmaccaw.com/css-transitions 35 $.fn.emulateTransitionEnd = function(duration) { 36 var called = false; 37 var $el = this; 38 $(this).one("bsTransitionEnd", function() { 39 called = true; 40 }); 41 var callback = function() { 42 if (!called) $($el).trigger($.support.transition.end); 43 }; 44 setTimeout(callback, duration); 45 return this; 46 }; 47 48 $(function() { 49 $.support.transition = transitionEnd(); 50 51 if (!$.support.transition) return; 52 53 $.event.special.bsTransitionEnd = { 54 bindType: $.support.transition.end, 55 delegateType: $.support.transition.end, 56 handle: function(e) { 57 if ($(e.target).is(this)) 58 return e.handleObj.handler.apply(this, arguments); 59 } 60 }; 61 }); 62})(jQuery);
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.