Switch to bun, clean up web implementation
This commit is contained in:
23 files changed
+240
-173
No files matched your search
@@ -28,7 +28,7 @@ export class Interpreter {
|
||||
this.initialize(root);
|
||||
}
|
||||
|
||||
initialize(root: HTMLElement) {
|
||||
initialize(root: HTMLElement, handler: EventListener | null = null) {
|
||||
this.global = {};
|
||||
this.local = {};
|
||||
this.root = root;
|
||||
@@ -36,6 +36,10 @@ export class Interpreter {
|
||||
this.nodes = [root];
|
||||
this.stack = [root];
|
||||
this.templates = {};
|
||||
|
||||
if (handler) {
|
||||
this.handler = handler;
|
||||
}
|
||||
}
|
||||
|
||||
createListener(event_name: string, element: HTMLElement, bubbles: boolean) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// We're using sledgehammer directly
|
||||
|
||||
import { Interpreter } from "./interpreter_core";
|
||||
export { setAttributeInner } from "./set_attribute";
|
||||
|
||||
export class PlatformInterpreter extends Interpreter {
|
||||
m: any;
|
||||
|
||||
Reference in new issue
Block a user