[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/bootstrap/js/ -> bootstrap-transition.js (source)

   1  /* ===================================================
   2   * bootstrap-transition.js v2.0.1
   3   * http://twitter.github.com/bootstrap/javascript.html#transitions
   4   * ===================================================
   5   * Copyright 2012 Twitter, Inc.
   6   *
   7   * Licensed under the Apache License, Version 2.0 (the "License");
   8   * you may not use this file except in compliance with the License.
   9   * You may obtain a copy of the License at
  10   *
  11   * http://www.apache.org/licenses/LICENSE-2.0
  12   *
  13   * Unless required by applicable law or agreed to in writing, software
  14   * distributed under the License is distributed on an "AS IS" BASIS,
  15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16   * See the License for the specific language governing permissions and
  17   * limitations under the License.
  18   * ========================================================== */
  19  
  20  !function( $ ) {
  21  
  22    $(function () {
  23  
  24      "use strict"
  25  
  26      /* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
  27       * ======================================================= */
  28  
  29      $.support.transition = (function () {
  30        var thisBody = document.body || document.documentElement
  31          , thisStyle = thisBody.style
  32          , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
  33  
  34        return support && {
  35          end: (function () {
  36            var transitionEnd = "TransitionEnd"
  37            if ( $.browser.webkit ) {
  38                transitionEnd = "webkitTransitionEnd"
  39            } else if ( $.browser.mozilla ) {
  40                transitionEnd = "transitionend"
  41            } else if ( $.browser.opera ) {
  42                transitionEnd = "oTransitionEnd"
  43            }
  44            return transitionEnd
  45          }())
  46        }
  47      })()
  48  
  49    })
  50  
  51  }( window.jQuery );


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1