mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
Add support for emitting signals for nodejs and the interpreter
This also enables the property and signal accessor test case for js.
This commit is contained in:
parent
ef9d3963e4
commit
84d8eaa130
4 changed files with 61 additions and 4 deletions
|
@ -24,6 +24,12 @@ require.extensions['.60'] =
|
|||
enumerable: true,
|
||||
})
|
||||
});
|
||||
c.signals().forEach(x => {
|
||||
Object.defineProperty(ret, x, {
|
||||
get() { return function () { comp.emit_signal(x); } },
|
||||
enumerable: true,
|
||||
})
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue