diff options
| author | fat <[email protected]> | 2015-05-10 19:45:38 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2015-05-10 19:45:38 -0700 |
| commit | ca9c850ebbfc880dc5021b451ffc9fa12184ff87 (patch) | |
| tree | 8db34e73d402c3f71fd2e8c853b7fddf6cee33d6 /js/transition.js | |
| parent | bbb97a8660639002e70b1786e595ef9171bfecc6 (diff) | |
| download | bootstrap-ca9c850ebbfc880dc5021b451ffc9fa12184ff87.tar.xz bootstrap-ca9c850ebbfc880dc5021b451ffc9fa12184ff87.zip | |
add getters for Version and Default where applicable
add modal my gawd
Diffstat (limited to 'js/transition.js')
| -rw-r--r-- | js/transition.js | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/js/transition.js b/js/transition.js deleted file mode 100644 index f23e6bdfe..000000000 --- a/js/transition.js +++ /dev/null @@ -1,59 +0,0 @@ -/* ======================================================================== - * Bootstrap: transition.js v3.3.4 - * http://getbootstrap.com/javascript/#transitions - * ======================================================================== - * Copyright 2011-2015 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); |
