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
6
6
var animationEndEvent = _ . animationEndEvent
7
7
var transDurationProp = _ . transitionProp + 'Duration'
8
8
var animDurationProp = _ . animationProp + 'Duration'
9
- var doc = typeof document === 'undefined' ? null : document
10
9
11
10
var TYPE_TRANSITION = 1
12
11
var TYPE_ANIMATION = 2
@@ -249,7 +248,7 @@ p.getCssTransitionType = function (className) {
249
248
// pageVisibility API is supported in IE10+, same as
250
249
// CSS transitions.
251
250
/* istanbul ignore if */
252
- if ( ! transitionEndEvent || ( doc && doc . hidden ) ) {
251
+ if ( ! transitionEndEvent || document . hidden ) {
253
252
return
254
253
}
255
254
var type = this . typeCache [ className ]
Original file line number Diff line number Diff line change @@ -12,11 +12,8 @@ var config = require('../config')
12
12
* @return {Boolean }
13
13
*/
14
14
15
- var doc =
16
- typeof document !== 'undefined' &&
17
- document . documentElement
18
-
19
15
exports . inDoc = function ( node ) {
16
+ var doc = document . documentElement
20
17
var parent = node && node . parentNode
21
18
return doc === node ||
22
19
doc === parent ||
You can’t perform that action at this time.
0 commit comments