Commit 422d04cb authored by Jacob Thornton's avatar Jacob Thornton

simplify transition plugin a little

parent 30b3f47e
......@@ -29,12 +29,8 @@
$.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
var transitionEnd = (function () {
return support && {
end: (function () {
var el = document.createElement('bootstrap')
, transEndEventNames = {
'WebkitTransition' : 'webkitTransitionEnd'
......@@ -51,9 +47,12 @@
}
}
}())
})()
return transitionEnd && {
end: transitionEnd
}
})()
})
......
......@@ -29,12 +29,8 @@
$.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
var transitionEnd = (function () {
return support && {
end: (function () {
var el = document.createElement('bootstrap')
, transEndEventNames = {
'WebkitTransition' : 'webkitTransitionEnd'
......@@ -51,9 +47,12 @@
}
}
}())
})()
return transitionEnd && {
end: transitionEnd
}
})()
})
......
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