mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[spdermonkey] init list of listeners in document
This commit is contained in:
parent
b5b09f1ba1
commit
8e8d9df4d6
@ -2078,6 +2078,9 @@ getDocument(JSContext *ctx, void *doc)
|
||||
if (!doc_private) {
|
||||
return NULL;
|
||||
}
|
||||
init_list(doc_private->listeners);
|
||||
doc_private->ref_count = 1;
|
||||
|
||||
JSObject *el = JS_NewObject(ctx, &document_class);
|
||||
|
||||
if (!el) {
|
||||
|
Loading…
Reference in New Issue
Block a user