hide private methods

pull/479/head
Cory LaViska 2021-06-25 20:07:22 -04:00
rodzic 114dfa3904
commit 12b0365ce0
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -373,8 +373,8 @@
return next(content);
}
// Remove members that don't have a description
const members = component.members?.filter(member => member.description);
// Remove members that are private or don't have a description
const members = component.members?.filter(member => member.description && member.privacy !== 'private');
const methods = members?.filter(prop => prop.kind === 'method' && prop.privacy !== 'private');
const props = members?.filter(prop => {
// Look for a corresponding attribute

Wyświetl plik

@ -96,23 +96,23 @@ export default class SlButton extends LitElement {
this.button.blur();
}
private handleSlotChange() {
handleSlotChange() {
this.hasLabel = hasSlot(this);
this.hasPrefix = hasSlot(this, 'prefix');
this.hasSuffix = hasSlot(this, 'suffix');
}
private handleBlur() {
handleBlur() {
this.hasFocus = false;
emit(this, 'sl-blur');
}
private handleFocus() {
handleFocus() {
this.hasFocus = true;
emit(this, 'sl-focus');
}
private handleClick(event: MouseEvent) {
handleClick(event: MouseEvent) {
if (this.disabled || this.loading) {
event.preventDefault();
event.stopPropagation();