refactor: improve code formatting and consistency in processTemplateMacros utility
All checks were successful
Publish to npm / quality (push) Successful in 19s
Publish to npm / publish (push) Successful in 26s

This commit is contained in:
Astrian Zheng 2025-05-21 15:53:28 +10:00
parent 8f80a4842e
commit 828d6b0279
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -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