summaryrefslogtreecommitdiff
path: root/src/core/node.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2013-02-19 23:27:10 +0000
committerVincent Sanders <vince@kyllikki.org>2013-02-19 23:27:10 +0000
commitddb2d27f4206905f2ed2ac7d61b74ce88d68401c (patch)
treec482500d137ff527279e15f1167ac3d2022fb013 /src/core/node.c
parenteb41fa70373b4f54fca3eab5a00521be4e48e5fe (diff)
downloadlibdom-ddb2d27f4206905f2ed2ac7d61b74ce88d68401c.tar.gz
libdom-ddb2d27f4206905f2ed2ac7d61b74ce88d68401c.tar.bz2
add context for default action function
Diffstat (limited to 'src/core/node.c')
-rw-r--r--src/core/node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/node.c b/src/core/node.c
index c7794e6..1323fca 100644
--- a/src/core/node.c
+++ b/src/core/node.c
@@ -2315,7 +2315,7 @@ dom_exception _dom_node_dispatch_event(dom_event_target *et,
dom_document_event_internal *dei;
dom_event_target **targets;
uint32_t ntargets, ntargets_allocated, targetnr;
- void *pw = NULL;
+ void *pw;
assert(et != NULL);
assert(evt != NULL);
@@ -2376,6 +2376,7 @@ dom_exception _dom_node_dispatch_event(dom_event_target *et,
/* The started callback of default action */
dei = &doc->dei;
+ pw = dei->actions_ctx;
if (dei->actions != NULL) {
dom_default_action_callback cb = dei->actions(evt->type,
DOM_DEFAULT_ACTION_STARTED, &pw);