minor tidy up

pull/567/head
Rich-Harris 8 years ago
parent 1a92398101
commit cfd5d3e3c7

@ -40,13 +40,14 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
if ( intro && obj.tick ) obj.tick( 0 );
return {
running: false,
t: intro ? 0 : 1,
running: false,
program: null,
pending: null,
run: function ( intro, callback ) {
var program = {
intro: intro,
start: window.performance.now() + ( obj.delay || 0 ),
intro: intro,
callback: callback
};
@ -94,8 +95,8 @@ export function wrapTransition ( node, fn, params, intro, outgroup ) {
abort: function () {
if ( obj.tick ) obj.tick( 1 );
if ( obj.css ) document.head.removeChild( style );
this.program = null;
this.running = !!this.pending;
this.program = this.pending = null;
this.running = false;
}
};
}

Loading…
Cancel
Save