Canvas Event: expose currentTarget to Nasal.
This commit is contained in:
parent
55d6d09524
commit
8ccc1c4d35
1 changed files with 1 additions and 0 deletions
|
@ -199,6 +199,7 @@ naRef initNasalCanvas(naRef globals, naContext c, naRef gcSave)
|
||||||
NasalEvent::init("canvas.Event")
|
NasalEvent::init("canvas.Event")
|
||||||
.member("type", &sc::Event::getTypeString)
|
.member("type", &sc::Event::getTypeString)
|
||||||
.member("target", &sc::Event::getTarget)
|
.member("target", &sc::Event::getTarget)
|
||||||
|
.member("currentTarget", &sc::Event::getCurrentTarget)
|
||||||
.method("stopPropagation", &sc::Event::stopPropagation);
|
.method("stopPropagation", &sc::Event::stopPropagation);
|
||||||
NasalMouseEvent::init("canvas.MouseEvent")
|
NasalMouseEvent::init("canvas.MouseEvent")
|
||||||
.bases<NasalEvent>()
|
.bases<NasalEvent>()
|
||||||
|
|
Loading…
Add table
Reference in a new issue