@@ -33,7 +33,7 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
33
33
var ease = obj . easing || linear ;
34
34
35
35
// TODO share <style> tag between all transitions?
36
- if ( obj . styles ) {
36
+ if ( obj . css ) {
37
37
var style = document . createElement ( 'style' ) ;
38
38
}
39
39
@@ -58,8 +58,8 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
58
58
59
59
this . callback = callback ;
60
60
61
- if ( obj . styles ) {
62
- generateKeyframes ( this . a , this . b , this . delta , this . duration , ease , obj . styles , node , style ) ;
61
+ if ( obj . css ) {
62
+ generateKeyframes ( this . a , this . b , this . delta , this . duration , ease , obj . css , node , style ) ;
63
63
}
64
64
65
65
if ( ! this . running ) {
@@ -74,13 +74,13 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
74
74
} ,
75
75
done : function ( ) {
76
76
if ( obj . tick ) obj . tick ( intro ? 1 : 0 ) ;
77
- if ( obj . styles ) document . head . removeChild ( style ) ;
77
+ if ( obj . css ) document . head . removeChild ( style ) ;
78
78
this . callback ( ) ;
79
79
this . running = false ;
80
80
} ,
81
81
abort : function ( ) {
82
- if ( ! intro && obj . tick ) obj . tick ( 1 ) ; // reset styles for intro
83
- if ( obj . styles ) document . head . removeChild ( style ) ;
82
+ if ( ! intro && obj . tick ) obj . tick ( 1 ) ; // reset css for intro
83
+ if ( obj . css ) document . head . removeChild ( style ) ;
84
84
this . running = false ;
85
85
}
86
86
} ;
0 commit comments