mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(): prefix private methods
This commit is contained in:
@ -54,12 +54,11 @@ import {Form} from '../../util/form';
|
||||
export class Checkbox {
|
||||
|
||||
constructor(
|
||||
private form: Form,
|
||||
private _form: Form,
|
||||
@Optional() ngControl: NgControl,
|
||||
elementRef: ElementRef
|
||||
) {
|
||||
this.form = form;
|
||||
form.register(this);
|
||||
_form.register(this);
|
||||
|
||||
this.onChange = (_) => {};
|
||||
this.onTouched = (_) => {};
|
||||
@ -75,7 +74,7 @@ export class Checkbox {
|
||||
*/
|
||||
ngOnInit() {
|
||||
if (!this.id) {
|
||||
this.id = 'chk-' + this.form.nextId();
|
||||
this.id = 'chk-' + this._form.nextId();
|
||||
}
|
||||
|
||||
this.labelId = 'lbl-' + this.id;
|
||||
@ -132,6 +131,6 @@ export class Checkbox {
|
||||
* @private
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.form.deregister(this);
|
||||
this._form.deregister(this);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user