diff options
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/event.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/html/event.nim b/src/html/event.nim index 46a576fb..6234f166 100644 --- a/src/html/event.nim +++ b/src/html/event.nim @@ -28,7 +28,7 @@ type Event* = ref object of RootObj ctype {.jsget: "type".}: string target* {.jsget.}: EventTarget - currentTarget {.jsget.}: EventTarget + currentTarget* {.jsget.}: EventTarget eventPhase {.jsget.}: uint16 bubbles {.jsget.}: bool cancelable {.jsget.}: bool @@ -93,11 +93,11 @@ proc newEvent(ctx: JSContext, ctype: string, eventInitDict = EventInit()): event.ctype = ctype return ok(event) -proc newEvent*(ctx: JSContext, ctype: string, target, currentTarget: EventTarget): Event = +proc newEvent*(ctx: JSContext, ctype: string, target: EventTarget): Event = return Event( ctype: ctype, target: target, - currentTarget: currentTarget + currentTarget: target ) proc initialize(this: Event, ctype: string, bubbles, cancelable: bool) = |