Update src/runtime/internal/Component.ts

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
pull/7235/head
ehsan2003 5 years ago committed by GitHub
parent ebf4054e7f
commit fd18fb3fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -272,7 +272,7 @@ export class SvelteComponent {
*
* @param type
* @param callback
* @returns a function that will remove the event listener when called.
* @returns a function that will remove the event listener when called
*/
$on(type, callback) {
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));

Loading…
Cancel
Save