]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
wrap transition
authorJacob Thornton <jacobthornton@gmail.com>
Tue, 17 Jan 2012 18:32:25 +0000 (10:32 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Tue, 17 Jan 2012 18:32:25 +0000 (10:32 -0800)
js/bootstrap-transition.js

index aaaee4bd28cac8c55094da32b92e3932544356f2..8f6e86e44257c5d131218425a9b28e07b7b85900 100644 (file)
  * limitations under the License.
  * ========================================================== */
 
-$(function () {
+!function( $ ) {
 
-  "use strict"
+  $(function () {
 
-  /* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
-   * ======================================================= */
+    "use strict"
 
-  $.support.transition = (function () {
-    var thisBody = document.body || document.documentElement
-      , thisStyle = thisBody.style
-      , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
+    /* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
+     * ======================================================= */
 
-    return support && {
-      end: (function () {
-        var transitionEnd = "TransitionEnd"
-        if ( $.browser.webkit ) {
-               transitionEnd = "webkitTransitionEnd"
-        } else if ( $.browser.mozilla ) {
-               transitionEnd = "transitionend"
-        } else if ( $.browser.opera ) {
-               transitionEnd = "oTransitionEnd"
-        }
-        return transitionEnd
-      }())
-    }
-  })()
+    $.support.transition = (function () {
+      var thisBody = document.body || document.documentElement
+        , thisStyle = thisBody.style
+        , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
 
-})
\ No newline at end of file
+      return support && {
+        end: (function () {
+          var transitionEnd = "TransitionEnd"
+          if ( $.browser.webkit ) {
+               transitionEnd = "webkitTransitionEnd"
+          } else if ( $.browser.mozilla ) {
+               transitionEnd = "transitionend"
+          } else if ( $.browser.opera ) {
+               transitionEnd = "oTransitionEnd"
+          }
+          return transitionEnd
+        }())
+      }
+    })()
+
+  })
+  
+}( window.jQuery )
\ No newline at end of file