Skip to content

Commit 7677be5

Browse files
[CircularProgress] clean up
1 parent 3f6d31a commit 7677be5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/circular-progress.jsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,13 @@ const CircularProgress = React.createClass({
9999
if (!this.isMounted()) return;
100100
if (this.props.mode !== "indeterminate") return;
101101

102-
AutoPrefix.set(wrapper.style, 'transform', null);
103-
AutoPrefix.set(wrapper.style, 'transform', "rotate(0deg)");
104-
wrapper.style.transitionDuration = "0ms";
102+
AutoPrefix.set(wrapper.style, 'transform', 'rotate(0deg)');
103+
AutoPrefix.set(wrapper.style, 'transitionDuration', '0ms');
105104

106-
107105
setTimeout(() => {
108-
AutoPrefix.set(wrapper.style, 'transform', "rotate(1800deg)");
109-
wrapper.style.transitionDuration = "10s";
110-
AutoPrefix.set(wrapper.style, 'transitionTimingFunction', "linear");
106+
AutoPrefix.set(wrapper.style, 'transform', 'rotate(1800deg)');
107+
AutoPrefix.set(wrapper.style, 'transitionDuration', '10s');
108+
AutoPrefix.set(wrapper.style, 'transitionTimingFunction', 'linear');
111109
}, 50);
112110
},
113111

0 commit comments

Comments
 (0)