diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-12-27 19:30:33 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-12-27 19:30:33 +0100 |
| commit | b7043c915a97ff46814b815301b02bbeb023efae (patch) | |
| tree | 655a5567e8fc846253fc6f98f7adaf668ee7b4b0 /src | |
| parent | 9f7f3cefa857c7d1b42d4c66d7325c9d880681be (diff) | |
| download | chawan-b7043c915a97ff46814b815301b02bbeb023efae.tar.gz | |
dom: expose getPropertyValue
Diffstat (limited to 'src')
| -rw-r--r-- | src/html/dom.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 1a916b5e..2c1d5feb 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -3298,7 +3298,7 @@ func find(this: CSSStyleDeclaration; s: string): int = return i return -1 -proc getPropertyValue(this: CSSStyleDeclaration; s: string): string = +proc getPropertyValue(this: CSSStyleDeclaration; s: string): string {.jsfunc.} = if (let i = this.find(s); i != -1): return $this.decls[i].value return "" |