1.1 --- a/bootstrap-source/bootstrap-3.0.3/js/transition.js Sat Jan 18 12:34:36 2014 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,56 +0,0 @@
1.4 -/* ========================================================================
1.5 - * Bootstrap: transition.js v3.0.3
1.6 - * http://getbootstrap.com/javascript/#transitions
1.7 - * ========================================================================
1.8 - * Copyright 2013 Twitter, Inc.
1.9 - *
1.10 - * Licensed under the Apache License, Version 2.0 (the "License");
1.11 - * you may not use this file except in compliance with the License.
1.12 - * You may obtain a copy of the License at
1.13 - *
1.14 - * http://www.apache.org/licenses/LICENSE-2.0
1.15 - *
1.16 - * Unless required by applicable law or agreed to in writing, software
1.17 - * distributed under the License is distributed on an "AS IS" BASIS,
1.18 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1.19 - * See the License for the specific language governing permissions and
1.20 - * limitations under the License.
1.21 - * ======================================================================== */
1.22 -
1.23 -
1.24 -+function ($) { "use strict";
1.25 -
1.26 - // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
1.27 - // ============================================================
1.28 -
1.29 - function transitionEnd() {
1.30 - var el = document.createElement('bootstrap')
1.31 -
1.32 - var transEndEventNames = {
1.33 - 'WebkitTransition' : 'webkitTransitionEnd'
1.34 - , 'MozTransition' : 'transitionend'
1.35 - , 'OTransition' : 'oTransitionEnd otransitionend'
1.36 - , 'transition' : 'transitionend'
1.37 - }
1.38 -
1.39 - for (var name in transEndEventNames) {
1.40 - if (el.style[name] !== undefined) {
1.41 - return { end: transEndEventNames[name] }
1.42 - }
1.43 - }
1.44 - }
1.45 -
1.46 - // http://blog.alexmaccaw.com/css-transitions
1.47 - $.fn.emulateTransitionEnd = function (duration) {
1.48 - var called = false, $el = this
1.49 - $(this).one($.support.transition.end, function () { called = true })
1.50 - var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
1.51 - setTimeout(callback, duration)
1.52 - return this
1.53 - }
1.54 -
1.55 - $(function () {
1.56 - $.support.transition = transitionEnd()
1.57 - })
1.58 -
1.59 -}(jQuery);