Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntheticEvent #36

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import js.html.EventTarget;
/**
https://facebook.github.io/react/docs/events.html
**/
extern class ReactEvent
extern class SyntheticEvent<NativeEvent>
{
public var bubbles(default, null):Bool;
public var cancelable(default, null):Bool;
public var currentTarget(default, null):EventTarget;
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;
Expand All @@ -23,4 +23,5 @@ extern class ReactEvent
public function isDefaultPrevented():Bool;
public function stopPropagation():Void;
public function isPropagationStopped():Bool;
public function persist():Void;
}