Skip to content

Commit f513be8

Browse files
committed
style(): use only leading underscores
1 parent 425db8a commit f513be8

File tree

12 files changed

+187
-187
lines changed

12 files changed

+187
-187
lines changed

src/components/button/button.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class MdButton {
7272
encapsulation: ViewEncapsulation.None
7373
})
7474
export class MdAnchor extends MdButton {
75-
disabled_: boolean = null;
75+
_disabled: boolean = null;
7676

7777
@HostBinding('tabIndex')
7878
get tabIndex(): number {
@@ -87,11 +87,11 @@ export class MdAnchor extends MdButton {
8787

8888
@HostBinding('attr.disabled')
8989
@Input('disabled')
90-
get disabled() { return this.disabled_; }
90+
get disabled() { return this._disabled; }
9191

9292
set disabled(value: boolean) {
9393
// The presence of *any* disabled value makes the component disabled, *except* for false.
94-
this.disabled_ = (value != null && value != false) ? true : null;
94+
this._disabled = (value != null && value != false) ? true : null;
9595
}
9696

9797
@HostListener('click', ['$event'])

src/components/progress-circle/progress_circle.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ export class MdProgressCircle {
3838
* Value of the progress circle.
3939
*
4040
* Input:number, defaults to 0.
41-
* value_ is bound to the host as the attribute aria-valuenow.
41+
* _value is bound to the host as the attribute aria-valuenow.
4242
*/
4343
@HostBinding('attr.aria-valuenow')
4444
@Input('value')
45-
value_: number = 0;
45+
_value: number = 0;
4646

4747
/**
4848
* Mode of the progress circle
@@ -69,20 +69,20 @@ export class MdProgressCircle {
6969

7070
// The total circumference is calculated based on the radius we use, 45.
7171
// PI * 2 * 45
72-
return 251.3274 * (100 - this.value_) / 100;
72+
return 251.3274 * (100 - this._value) / 100;
7373
}
7474

7575

7676
/** Gets the progress value, returning the clamped value. */
7777
get value() {
78-
return this.value_;
78+
return this._value;
7979
}
8080

8181

8282
/** Sets the progress value, clamping before setting the internal value. */
8383
set value(v: number) {
8484
if (isPresent(v)) {
85-
this.value_ = MdProgressCircle.clamp(v);
85+
this._value = MdProgressCircle.clamp(v);
8686
}
8787
}
8888

src/components/sidenav/sidenav.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<div class="md-sidenav-backdrop" (click)="closeModalSidenav_()"
2-
[class.md-sidenav-shown]="isShowingBackdrop_()"></div>
1+
<div class="md-sidenav-backdrop" (click)="_closeModalSidenav()"
2+
[class.md-sidenav-shown]="_isShowingBackdrop()"></div>
33

44
<ng-content select="md-sidenav"></ng-content>
55

6-
<md-content [style.margin-left.px]="getMarginLeft_()"
7-
[style.margin-right.px]="getMarginRight_()"
8-
[style.left.px]="getPositionLeft_()"
9-
[style.right.px]="getPositionRight_()">
6+
<md-content [style.margin-left.px]="_getMarginLeft()"
7+
[style.margin-right.px]="_getMarginRight()"
8+
[style.left.px]="_getPositionLeft()"
9+
[style.right.px]="_getPositionRight()">
1010
<ng-content></ng-content>
1111
</md-content>

src/components/sidenav/sidenav.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function createFixture(builder: TestComponentBuilder,
5555
function endSidenavTransition(fixture: ComponentFixture) {
5656
let sidenav: any = fixture.debugElement.query(By.directive(MdSidenav)).componentInstance;
5757
sidenav.onTransitionEnd({
58-
target: (<any>sidenav).elementRef_.nativeElement,
58+
target: (<any>sidenav)._elementRef.nativeElement,
5959
propertyName: 'transform'
6060
});
6161
fixture.detectChanges();

0 commit comments

Comments
 (0)