@@ -16,9 +16,9 @@ const DURATION_INDETERMINATE = 667;
16
16
/** Duration of the indeterminate animation. */
17
17
const DURATION_DETERMINATE = 225 ;
18
18
/** Start animation value of the indeterminate animation */
19
- let startIndeterminate = 3 ;
19
+ const startIndeterminate = 3 ;
20
20
/** End animation value of the indeterminate animation */
21
- let endIndeterminate = 80 ;
21
+ const endIndeterminate = 80 ;
22
22
23
23
24
24
export type ProgressCircleMode = 'determinate' | 'indeterminate' ;
@@ -184,7 +184,7 @@ export class MdProgressCircle implements OnDestroy {
184
184
private _startIndeterminateAnimation ( ) {
185
185
let rotationStartPoint = 0 ;
186
186
let start = startIndeterminate ;
187
- let end = endIndeterminate ;
187
+ let end = endIndeterminate ;
188
188
let duration = DURATION_INDETERMINATE ;
189
189
let animate = ( ) => {
190
190
this . _animateCircle ( start , end , materialEase , duration , rotationStartPoint ) ;
@@ -250,8 +250,8 @@ function clamp(v: number) {
250
250
* Returns the current timestamp either based on the performance global or a date object.
251
251
*/
252
252
function now ( ) {
253
- if ( window . performance && window . performance . now ) {
254
- return window . performance . now ( ) ;
253
+ if ( typeof performance !== 'undefined' && performance . now ) {
254
+ return performance . now ( ) ;
255
255
}
256
256
return Date . now ( ) ;
257
257
}
0 commit comments