Sha256: 62d0f0d0d9d24ac5bc5415ada096d6c7188d2ef627b54c0a6e0c7f3ee388ead4

Contents?: true

Size: 1.71 KB

Versions: 38

Compression:

Stored size: 1.71 KB

Contents

/* ===================================================
 * bootstrap-transition.js v2.2.1
 * http://twitter.github.com/bootstrap/javascript.html#transitions
 * ===================================================
 * Copyright 2012 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */


!function ($) {

  "use strict"; // jshint ;_;


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

  $(function () {

    $.support.transition = (function () {

      var transitionEnd = (function () {

        var el = document.createElement('bootstrap')
          , transEndEventNames = {
               'WebkitTransition' : 'webkitTransitionEnd'
            ,  'MozTransition'    : 'transitionend'
            ,  'OTransition'      : 'oTransitionEnd otransitionend'
            ,  'transition'       : 'transitionend'
            }
          , name

        for (name in transEndEventNames){
          if (el.style[name] !== undefined) {
            return transEndEventNames[name]
          }
        }

      }())

      return transitionEnd && {
        end: transitionEnd
      }

    })()

  })

}(window.jQuery);

Version data entries

38 entries across 38 versions & 13 rubygems

Version Path
style-guide-1.1.1 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-1.1.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js
webgen-sass_twitter_bootstrap-bundle-1.0.0 lib/webgen/bundle/sass_twitter_bootstrap/data/js/bootstrap-transition.js
helium-rails-0.0.3 vendor/assets/javascripts/helium/bootstrap-transition.js
helium-rails-0.0.2 vendor/assets/javascripts/helium/bootstrap-transition.js
helium-rails-0.0.1 vendor/assets/javascripts/helium/bootstrap-transition.js
compass-helium-0.0.1 templates/project/js/bootstrap-transition.js
style-guide-1.0.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.7.4 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.7.3 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.7.2 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.7.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.6.2 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.6.1 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.6.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.5.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.4.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.3.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.2.1 spec/dummy/app/assets/javascripts/bootstrap-transition.js
style-guide-0.2.0 spec/dummy/app/assets/javascripts/bootstrap-transition.js