Mercurial > molko
comparison src/libmlk-core-js/core/js-event.c @ 370:ea7a24c814e4
js: Event.type -> Event.Type
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 24 Oct 2021 17:38:01 +0200 |
parents | 323d13f49233 |
children | 8ac282bd5935 |
comparison
equal
deleted
inserted
replaced
369:1e06f871dc63 | 370:ea7a24c814e4 |
---|---|
289 void | 289 void |
290 js_event_push(duk_context *ctx, const union event *ev) | 290 js_event_push(duk_context *ctx, const union event *ev) |
291 { | 291 { |
292 duk_push_object(ctx); | 292 duk_push_object(ctx); |
293 duk_push_int(ctx, ev->type); | 293 duk_push_int(ctx, ev->type); |
294 duk_put_prop_string(ctx, -2, "type"); | 294 duk_put_prop_string(ctx, -2, "Type"); |
295 push[ev->type](ctx, ev); | 295 push[ev->type](ctx, ev); |
296 } | 296 } |