From 7677be5beedd9c315544d6beafa19c354d3d4e9f Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 3 Nov 2015 11:50:19 +0100 Subject: [PATCH] [CircularProgress] clean up --- src/circular-progress.jsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/circular-progress.jsx b/src/circular-progress.jsx index f81c49935a66d6..21b1f9ed7b1891 100644 --- a/src/circular-progress.jsx +++ b/src/circular-progress.jsx @@ -99,15 +99,13 @@ const CircularProgress = React.createClass({ if (!this.isMounted()) return; if (this.props.mode !== "indeterminate") return; - AutoPrefix.set(wrapper.style, 'transform', null); - AutoPrefix.set(wrapper.style, 'transform', "rotate(0deg)"); - wrapper.style.transitionDuration = "0ms"; + AutoPrefix.set(wrapper.style, 'transform', 'rotate(0deg)'); + AutoPrefix.set(wrapper.style, 'transitionDuration', '0ms'); - setTimeout(() => { - AutoPrefix.set(wrapper.style, 'transform', "rotate(1800deg)"); - wrapper.style.transitionDuration = "10s"; - AutoPrefix.set(wrapper.style, 'transitionTimingFunction', "linear"); + AutoPrefix.set(wrapper.style, 'transform', 'rotate(1800deg)'); + AutoPrefix.set(wrapper.style, 'transitionDuration', '10s'); + AutoPrefix.set(wrapper.style, 'transitionTimingFunction', 'linear'); }, 50); },