From 86a6efbb8366fd2bcf75d73072b2a913dc5eedf3 Mon Sep 17 00:00:00 2001 From: Kevin Leung Date: Wed, 29 Jan 2020 15:08:29 +0800 Subject: [PATCH] ReactEvent -> SyntheticEvent --- src/lib/react/{ReactEvent.hx => SyntheticEvent.hx} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename src/lib/react/{ReactEvent.hx => SyntheticEvent.hx} (84%) diff --git a/src/lib/react/ReactEvent.hx b/src/lib/react/SyntheticEvent.hx similarity index 84% rename from src/lib/react/ReactEvent.hx rename to src/lib/react/SyntheticEvent.hx index e529774..430fcd0 100644 --- a/src/lib/react/ReactEvent.hx +++ b/src/lib/react/SyntheticEvent.hx @@ -6,7 +6,7 @@ import js.html.EventTarget; /** https://facebook.github.io/react/docs/events.html **/ -extern class ReactEvent +extern class SyntheticEvent { public var bubbles(default, null):Bool; public var cancelable(default, null):Bool; @@ -14,7 +14,7 @@ extern class ReactEvent public var defaultPrevented(default, null):Bool; public var eventPhase(default, null):Int; public var isTrusted(default, null):Bool; - public var nativeEvent(default, null):Event; + public var nativeEvent(default, null):NativeEvent; public var target(default, null):EventTarget; public var timeStamp(default, null):Date; public var type(default, null):String; @@ -23,4 +23,5 @@ extern class ReactEvent public function isDefaultPrevented():Bool; public function stopPropagation():Void; public function isPropagationStopped():Bool; + public function persist():Void; }