mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
docs(switch): toggle() and check() should be private
This commit is contained in:
@ -167,6 +167,7 @@ export class Switch {
|
||||
/**
|
||||
* Set checked state of this switch.
|
||||
* @param {boolean} value Boolean to set this switch's checked state to.
|
||||
* @private
|
||||
*/
|
||||
check(value) {
|
||||
this.checked = !!value;
|
||||
@ -175,6 +176,7 @@ export class Switch {
|
||||
|
||||
/**
|
||||
* Toggle the checked state of this switch.
|
||||
* @private
|
||||
*/
|
||||
toggle(ev) {
|
||||
this.check(!this.checked);
|
||||
|
Reference in New Issue
Block a user