about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-04 18:47:55 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-17 19:40:44 +0200
commitf868027fed934904718962b69c88cc7e2008e2c3 (patch)
treec2859362c7f8a1c26cb7103d0f4ba96f3d9f8d49 /src/config
parentdd5f480ebecec6758991c226af208c79e2fe9cbc (diff)
downloadchawan-f868027fed934904718962b69c88cc7e2008e2c3.tar.gz
dom: add forms, elements getter + misc fixes
* add document.forms
* add form.elements
* remove redundant jshasprop functions
* use mpairs for attribute iteration (mpairs use pointers, but pairs
  copies)
* fix remove() crash
* fix remove() collection invalidation for children (if parent is not
  in the collection)
* update monoucha
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config/config.nim b/src/config/config.nim
index 3763b98d..63d2311b 100644
--- a/src/config/config.nim
+++ b/src/config/config.nim
@@ -292,9 +292,6 @@ proc bindPagerKey(config: Config; key, action: string) {.jsfunc.} =
 proc bindLineKey(config: Config; key, action: string) {.jsfunc.} =
   config.line.setter(key, action)
 
-proc hasprop(a: var ActionMap; s: string): bool {.jshasprop.} =
-  return s in a
-
 proc openFileExpand(dir, file: string): FileStream =
   if file.len == 0:
     return nil