1
0
Fork 0

Canvas Event: expose currentTarget to Nasal.

This commit is contained in:
Thomas Geymayer 2013-07-04 00:55:58 +02:00
parent 55d6d09524
commit 8ccc1c4d35

View file

@ -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>()