Skip to content

Commit 8da7019

Browse files
committed
rename styles method to css - less ambiguity over what it returns, no style/styles confusion
1 parent b8affd4 commit 8da7019

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/shared/transitions.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
3333
var ease = obj.easing || linear;
3434

3535
// TODO share <style> tag between all transitions?
36-
if ( obj.styles ) {
36+
if ( obj.css ) {
3737
var style = document.createElement( 'style' );
3838
}
3939

@@ -58,8 +58,8 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
5858

5959
this.callback = callback;
6060

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 );
6363
}
6464

6565
if ( !this.running ) {
@@ -74,13 +74,13 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
7474
},
7575
done: function () {
7676
if ( obj.tick ) obj.tick( intro ? 1 : 0 );
77-
if ( obj.styles ) document.head.removeChild( style );
77+
if ( obj.css ) document.head.removeChild( style );
7878
this.callback();
7979
this.running = false;
8080
},
8181
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 );
8484
this.running = false;
8585
}
8686
};

0 commit comments

Comments
 (0)