0.0.3: Exotic Type Gymnastics #3
|
@ -440,7 +440,7 @@ function processElementWithItemContext(
|
|||
context: ListRenderingContext,
|
||||
) {
|
||||
// Store the item context of the element so that subsequent updates can find it
|
||||
; (element as { _itemContext?: Record<string, unknown> })._itemContext =
|
||||
;(element as { _itemContext?: Record<string, unknown> })._itemContext =
|
||||
itemContext
|
||||
|
||||
// Process bindings in text nodes
|
||||
|
@ -507,7 +507,8 @@ function processElementWithItemContext(
|
|||
$el: element,
|
||||
setState: context.setState,
|
||||
getState: context.getState,
|
||||
triggerFunc: context.triggerFunc(eventName, event)
|
||||
triggerFunc: (eventName: string, ...args: unknown[]) =>
|
||||
context.triggerFunc(eventName, ...args),
|
||||
}
|
||||
|
||||
// Execute the expression
|
||||
|
|
Loading…
Reference in New Issue
Block a user