diff options
| author | Michael Peter Christen <mc@yacy.net> | 2014-04-02 12:19:26 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2014-04-02 12:19:26 +0200 |
| commit | 8d35fcb1c795bdb241c76ca91e327864562bde93 (patch) | |
| tree | 863f30874688c2ad7dbd5c62e87cea131545494f /htroot/env/bootstrap | |
| parent | 3abc3c4c4cb50dab182c0defcf4bd09e5bd6693b (diff) | |
transition.js is also included in bootstrap.js
Diffstat (limited to 'htroot/env/bootstrap')
| -rw-r--r-- | htroot/env/bootstrap/js/transition.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/htroot/env/bootstrap/js/transition.js b/htroot/env/bootstrap/js/transition.js deleted file mode 100644 index b8559c74e..000000000 --- a/htroot/env/bootstrap/js/transition.js +++ /dev/null @@ -1,48 +0,0 @@ -/* ======================================================================== - * Bootstrap: transition.js v3.1.1 - * http://getbootstrap.com/javascript/#transitions - * ======================================================================== - * Copyright 2011-2014 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, $el = this - $(this).one($.support.transition.end, function () { called = true }) - var callback = function () { if (!called) $($el).trigger($.support.transition.end) } - setTimeout(callback, duration) - return this - } - - $(function () { - $.support.transition = transitionEnd() - }) - -}(jQuery); |
