chore(): prefix private methods

This commit is contained in:
mhartington
2015-12-18 14:54:12 -05:00
parent 344619d7d7
commit 0f64bccc43
9 changed files with 35 additions and 36 deletions

View File

@ -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);
}
}