Sha256: 887138eac803148e0f2f90a3223e58006f391786b7272966aaf1936a6bb44d0c
Contents?: true
Size: 1.22 KB
Versions: 246
Compression:
Stored size: 1.22 KB
Contents
+function ($) { 'use strict'; // CSS TRANSITION SUPPORT // ====================== function transitionEnd() { var el = document.createElement('bootstrap'); var transEndEventNames = { WebkitTransition: 'webkitTransitionEnd', MozTransition: 'transitionend', OTransition: 'oTransitionEnd otransitionend', transition: 'transitionend' }; for (var name in transEndEventNames) { if (el.style[name] !== undefined) { return { end: transEndEventNames[name] }; } } return false; } $.fn.emulateTransitionEnd = function (duration) { var called = false; var $el = this; $(this).one('bsTransitionEnd', function () { called = true; }); var callback = function () { if (!called) $($el).trigger($.support.transition.end); }; setTimeout(callback, duration); return this; }; $(function () { $.support.transition = transitionEnd(); if (!$.support.transition) return; $.event.special.bsTransitionEnd = { bindType: $.support.transition.end, delegateType: $.support.transition.end, handle: function (e) { if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments); } }; }); }(jQuery);
Version data entries
246 entries across 246 versions & 1 rubygems