mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +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.
|
* Set checked state of this switch.
|
||||||
* @param {boolean} value Boolean to set this switch's checked state to.
|
* @param {boolean} value Boolean to set this switch's checked state to.
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
check(value) {
|
check(value) {
|
||||||
this.checked = !!value;
|
this.checked = !!value;
|
||||||
@ -175,6 +176,7 @@ export class Switch {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle the checked state of this switch.
|
* Toggle the checked state of this switch.
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
toggle(ev) {
|
toggle(ev) {
|
||||||
this.check(!this.checked);
|
this.check(!this.checked);
|
||||||
|
Reference in New Issue
Block a user