File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ var transitionEndEvent = _.transitionEndEvent
66var animationEndEvent = _ . animationEndEvent
77var transDurationProp = _ . transitionProp + 'Duration'
88var animDurationProp = _ . animationProp + 'Duration'
9- var doc = typeof document === 'undefined' ? null : document
109
1110var TYPE_TRANSITION = 1
1211var TYPE_ANIMATION = 2
@@ -249,7 +248,7 @@ p.getCssTransitionType = function (className) {
249248 // pageVisibility API is supported in IE10+, same as
250249 // CSS transitions.
251250 /* istanbul ignore if */
252- if ( ! transitionEndEvent || ( doc && doc . hidden ) ) {
251+ if ( ! transitionEndEvent || document . hidden ) {
253252 return
254253 }
255254 var type = this . typeCache [ className ]
Original file line number Diff line number Diff line change @@ -12,11 +12,8 @@ var config = require('../config')
1212 * @return {Boolean }
1313 */
1414
15- var doc =
16- typeof document !== 'undefined' &&
17- document . documentElement
18-
1915exports . inDoc = function ( node ) {
16+ var doc = document . documentElement
2017 var parent = node && node . parentNode
2118 return doc === node ||
2219 doc === parent ||
You can’t perform that action at this time.
0 commit comments