Compare commits
1 Commits
develop
...
feature/us
Author | SHA1 | Date |
---|---|---|
![]() |
d220a1279a |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -351,10 +351,10 @@ function genRX(
|
|||
ctx.fnContent = fnContent
|
||||
|
||||
try {
|
||||
const fn = new Function('ctx', ...argNames, fnContent)
|
||||
const fn = new Function('el', 'signals', ...argNames, fnContent)
|
||||
return (...args: any[]) => {
|
||||
try {
|
||||
return fn(ctx, ...args)
|
||||
return fn(ctx.el, ctx.signals, ...args)
|
||||
} catch (error: any) {
|
||||
throw runtimeErr('ExecuteExpression', ctx, {
|
||||
error: error.message,
|
||||
|
|
|
@ -89,7 +89,6 @@ export type HTMLorSVGElement = Element & (HTMLElement | SVGElement)
|
|||
export type Modifiers = Map<string, Set<string>> // mod name -> tags
|
||||
|
||||
export type RuntimeContext = InitContext & {
|
||||
plugin: DatastarPlugin // The name of the plugin
|
||||
el: HTMLorSVGElement // The element the attribute is on
|
||||
rawKey: Readonly<string> // no parsing data-* key
|
||||
key: Readonly<string> // data-* key without the prefix or tags
|
||||
|
|
|
@ -7,8 +7,8 @@ import "time"
|
|||
const (
|
||||
DatastarKey = "datastar"
|
||||
Version = "1.0.0-beta.9"
|
||||
VersionClientByteSize = 39564
|
||||
VersionClientByteSizeGzip = 14813
|
||||
VersionClientByteSize = 39586
|
||||
VersionClientByteSizeGzip = 14821
|
||||
|
||||
//region Default durations
|
||||
|
||||
|
|
Loading…
Reference in New Issue