Sha256: 59789a7abcff96a1615a74c47c047bcb0b689859cf3af48c25a5f6f7128d5c2a

Contents?: true

Size: 1.79 KB

Versions: 136

Compression:

Stored size: 1.79 KB

Contents

/* ========================================================================
 * Bootstrap: transition.js v3.3.7
 * http://getbootstrap.com/javascript/#transitions
 * ========================================================================
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */


+function ($) {
  'use strict';

  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
  // ============================================================

  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 // explicit for ie8 (  ._.)
  }

  // http://blog.alexmaccaw.com/css-transitions
  $.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

136 entries across 107 versions & 18 rubygems

Version Path
trestle-0.8.13 vendor/assets/bower_components/trestle/bootstrap-sass/assets/javascripts/bootstrap/transition.js
trestle-0.8.12 vendor/assets/bower_components/trestle/bootstrap-sass/assets/javascripts/bootstrap/transition.js
card-1.97.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
card-1.97.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/transition.js
card-1.96.8 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/transition.js
card-1.96.8 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
sanskrit-documentation-theme-0.1.8 assets/node_modules/bootstrap/js/transition.js
card-1.96.7 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
card-1.96.7 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/transition.js
ext_yarn-0.6.0 vendor/bootstrap-sass/assets/javascripts/bootstrap/transition.js
ext_yarn-0.5.0 vendor/bootstrap-sass/assets/javascripts/bootstrap/transition.js
card-1.96.6 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
card-1.96.6 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/transition.js
card-1.96.5 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/transition.js
card-1.96.5 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
binda-0.1.11 vendor/assets/javascripts/bootstrap/bootstrap/transition.js
card-1.96.4 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
card-1.96.4 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/transition.js
card-1.96.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/transition.js
card-1.96.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js