mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): prefix private methods
This commit is contained in:
@@ -111,7 +111,7 @@ export class Toggle {
|
||||
form: Form,
|
||||
elementRef: ElementRef,
|
||||
config: Config,
|
||||
@Optional() private ngControl: NgControl
|
||||
@Optional() private _ngControl: NgControl
|
||||
) {
|
||||
// deprecated warning
|
||||
if (elementRef.nativeElement.tagName == 'ION-SWITCH') {
|
||||
@@ -129,8 +129,8 @@ export class Toggle {
|
||||
this.onChange = (_) => {};
|
||||
this.onTouched = (_) => {};
|
||||
|
||||
if (ngControl) {
|
||||
ngControl.valueAccessor = this;
|
||||
if (_ngControl) {
|
||||
_ngControl.valueAccessor = this;
|
||||
}
|
||||
|
||||
let self = this;
|
||||
|
||||
Reference in New Issue
Block a user