diff options
| author | Mark Otto <[email protected]> | 2012-01-17 23:19:50 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-17 23:19:50 -0800 |
| commit | 9372fdbf9787b35535cf0c475edc00cc46e3906f (patch) | |
| tree | 99e77e0d61c71488604ca2eb3fc443be7fd70db8 | |
| parent | 41a410b8e631ddcc958568402f1ea1616f2a982d (diff) | |
| parent | 593b062c7a9781272b983a1a2e1af0824d79e1c4 (diff) | |
| download | bootstrap-9372fdbf9787b35535cf0c475edc00cc46e3906f.tar.xz bootstrap-9372fdbf9787b35535cf0c475edc00cc46e3906f.zip | |
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
| -rw-r--r-- | js/bootstrap-transition.js | 50 |
1 files changed, 27 insertions, 23 deletions
diff --git a/js/bootstrap-transition.js b/js/bootstrap-transition.js index aaaee4bd2..8f6e86e44 100644 --- a/js/bootstrap-transition.js +++ b/js/bootstrap-transition.js @@ -17,31 +17,35 @@ * 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 |
