Skip to content

Commit 18c8d7c

Browse files
authored
Merge pull request #21 from UdashFramework/js-original-event
JQueryEvent - access to the original event
2 parents 744e2fe + ebf4609 commit 18c8d7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/scala/io/udash/wrappers/jquery/JQueryEvent.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ trait JQueryEvent extends Event {
8787
/** For key or mouse events, this property indicates the specific key or button that was pressed.<br/>
8888
* See: <a href="http://api.jquery.com/event.which/">jQuery Docs</a> */
8989
def which: Int = js.native
90+
91+
/** The original JavaScript event.
92+
* See: <a href="http://api.jquery.com/category/events/event-object/">jQuery Docs</a> */
93+
def originalEvent: Event = js.native
9094
}

0 commit comments

Comments
 (0)