|
|
@ -2,7 +2,7 @@ import { custom_event, append, insert, detach, listen, attr } from './dom';
|
|
|
|
import { SvelteComponent } from './Component';
|
|
|
|
import { SvelteComponent } from './Component';
|
|
|
|
|
|
|
|
|
|
|
|
export function dispatch_dev<T=any>(type: string, detail?: T) {
|
|
|
|
export function dispatch_dev<T=any>(type: string, detail?: T) {
|
|
|
|
document.dispatchEvent(custom_event(type, detail));
|
|
|
|
document.dispatchEvent(custom_event(type, { version: '__VERSION__', ...detail }));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function append_dev(target: Node, node: Node) {
|
|
|
|
export function append_dev(target: Node, node: Node) {
|
|
|
|