File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
import React , { createElement , cloneElement } from 'react' ;
2
2
import { findDOMNode } from 'react-dom' ;
3
3
4
- let velocity
5
- if ( typeof document !== 'undefined' && typeof window !== 'undefined' ) {
6
- // only load velocity on the client
7
- velocity = require ( 'velocity-animate' )
8
-
4
+ let velocity ;
5
+ if ( typeof document !== 'undefined' && typeof window !== 'undefined' ) {
6
+ // only load velocity on the client
7
+ velocity = require ( 'velocity-animate' ) ;
9
8
} else {
10
- // provide a velocity stub for the server
11
- _velocityAnimate = function velocityServerDummy ( ) {
12
- var callback = arguments [ arguments . length - 1 ]
13
- // call after stack flushes
14
- // in case you app depends on the asyncron nature of this function
15
- setImmediate ( function ( ) { callback ( ) } )
16
- }
9
+ // provide a velocity stub for the server
10
+ velocity = function velocityServerDummy ( ) {
11
+ const callback = arguments [ arguments . length - 1 ] ;
12
+ // call after stack flushes
13
+ // in case you app depends on the asyncron nature of this function
14
+ setImmediate ( function ( ) { callback ( ) ; } ) ;
15
+ } ;
17
16
}
18
17
19
18
import {
You can’t perform that action at this time.
0 commit comments