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