Skip to content

Commit f4df111

Browse files
committed
Rename token to MD_DISABLE_RIPPLES
1 parent 58dacef commit f4df111

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/lib/core/ripple/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {CompatibilityModule} from '../compatibility/compatibility';
44
import {VIEWPORT_RULER_PROVIDER} from '../overlay/position/viewport-ruler';
55
import {SCROLL_DISPATCHER_PROVIDER} from '../overlay/scroll/scroll-dispatcher';
66

7-
export {MdRipple, MD_RIPPLES_DISABLE} from './ripple';
7+
export {MdRipple, MD_DISABLE_RIPPLES} from './ripple';
88
export {RippleRef, RippleState} from './ripple-ref';
99
export {RippleConfig} from './ripple-renderer';
1010

src/lib/core/ripple/ripple.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {TestBed, ComponentFixture, fakeAsync, tick, inject} from '@angular/core/testing';
22
import {Component, ViewChild} from '@angular/core';
3-
import {MdRipple, MdRippleModule, MD_RIPPLES_DISABLE, RippleState} from './index';
3+
import {MdRipple, MdRippleModule, MD_DISABLE_RIPPLES, RippleState} from './index';
44
import {ViewportRuler} from '../overlay/position/viewport-ruler';
55
import {RIPPLE_FADE_OUT_DURATION, RIPPLE_FADE_IN_DURATION} from './ripple-renderer';
66
import {dispatchMouseEvent} from '../testing/dispatch-events';
@@ -356,7 +356,7 @@ describe('MdRipple', () => {
356356
TestBed.configureTestingModule({
357357
imports: [MdRippleModule],
358358
declarations: [BasicRippleContainer],
359-
providers: [{ provide: MD_RIPPLES_DISABLE, useValue: true }]
359+
providers: [{ provide: MD_DISABLE_RIPPLES, useValue: true }]
360360
});
361361
});
362362

src/lib/core/ripple/ripple.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {ViewportRuler} from '../overlay/position/viewport-ruler';
1515
import {RippleRef} from './ripple-ref';
1616

1717
/** OpaqueToken that can be used to globally disable all ripples. Except programmatic ones. */
18-
export const MD_RIPPLES_DISABLE = new OpaqueToken('md-ripples-disable');
18+
export const MD_DISABLE_RIPPLES = new OpaqueToken('md-disable-ripples');
1919

2020
@Directive({
2121
selector: '[md-ripple], [mat-ripple]',
@@ -71,7 +71,7 @@ export class MdRipple implements OnChanges, OnDestroy {
7171
private _rippleRenderer: RippleRenderer;
7272

7373
constructor(elementRef: ElementRef, ngZone: NgZone, ruler: ViewportRuler,
74-
@Optional() @Inject(MD_RIPPLES_DISABLE) private _forceDisableRipples: boolean) {
74+
@Optional() @Inject(MD_DISABLE_RIPPLES) private _forceDisableRipples: boolean) {
7575

7676
this._rippleRenderer = new RippleRenderer(elementRef, ngZone, ruler);
7777
}

0 commit comments

Comments
 (0)