mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
refactor emit into ShoelaceElement
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { html } from 'lit';
|
||||
import { customElement, property } from 'lit/decorators.js';
|
||||
import { emit } from '../../internal/event';
|
||||
import ShoelaceElement from '../../internal/shoelace-element';
|
||||
import { watch } from '../../internal/watch';
|
||||
import { LocalizeController } from '../../utilities/localize';
|
||||
@@ -34,7 +33,7 @@ export default class {{ properCase tag }} extends ShoelaceElement {
|
||||
@watch('someProp')
|
||||
doSomething() {
|
||||
// Example event
|
||||
emit(this, 'sl-event-name');
|
||||
this.emit('sl-event-name');
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user