(element: Element)
| 25 | * creates an empty one. |
| 26 | */ |
| 27 | export function getDefaulted(element: Element): {[key: string]: string | undefined} { |
| 28 | const cache = get(element) ?? {}; |
| 29 | set(element, cache); |
| 30 | return cache; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Writes the jsaction parser cache to the given DOM Element. |