Commit 593b062c authored by Jacob Thornton's avatar Jacob Thornton

wrap transition

parent 7ec4e913
...@@ -17,31 +17,35 @@ ...@@ -17,31 +17,35 @@
* limitations under the License. * limitations under the License.
* ========================================================== */ * ========================================================== */
$(function () { !function( $ ) {
"use strict" $(function () {
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874) "use strict"
* ======================================================= */
$.support.transition = (function () { /* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
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
return support && { $.support.transition = (function () {
end: (function () { var thisBody = document.body || document.documentElement
var transitionEnd = "TransitionEnd" , thisStyle = thisBody.style
if ( $.browser.webkit ) { , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
transitionEnd = "webkitTransitionEnd"
} else if ( $.browser.mozilla ) {
transitionEnd = "transitionend"
} else if ( $.browser.opera ) {
transitionEnd = "oTransitionEnd"
}
return transitionEnd
}())
}
})()
}) return support && {
\ No newline at end of file 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment