package com.github.spirylics.xgwt.essential;

import com.google.gwt.user.client.Event;

public class XEvent {
    final Event event;

    public XEvent(Event event) {
        this.event = event;
    }

    public Event getEvent() {
        return event;
    }

    public <E extends Element> E getElement() {
        return (E) event.getEventTarget();
    }

}

@@ -81,16 +81,69 @@
 Event;%0A%0A
+import static com.google.gwt.query.client.GQuery.$;%0A%0A
 public c
@@ -378,22 +378,18 @@
 (E) 
-event.
+$(
 getEvent
 Targ
@@ -388,15 +388,17 @@
 vent
-Tar
+()).
 get(
+0
 );%0A 

fix getElement XEvent