-
Notifications
You must be signed in to change notification settings - Fork 133
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
Added fireEvent(Event<?>) overload to address issue #668 #669
Conversation
@@ -225,6 +226,10 @@ public void fireEvent(GwtEvent<?> event) { | |||
getEventBus().fireEventFromSource(event, this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public void fireEvent(GwtEvent<?> event)
seems a bit redundant now.
Is there a web bindery replacement for HasHandlers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately there seems to be no replacement:
http://www.gwtproject.org/javadoc/latest/com/google/web/bindery/event/shared/package-summary.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change:
getEventBus().fireEventFromSource(event, this);
to:
fireEvent((Event<?>) event);
Then any future changes to fire event can be made in the one method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I did the changes as requested (I did commit --amend to make sure that we don't pollute the commit history). Hope this is fine
Thanks for the contribution! LGTM @Chris-V @christiangoudreau ? |
Looks good to me! |
LGTM. Nevermind, the javadoc is inherited. Thanks for the contribution! |
Added fireEvent(Event<?>) overload to address issue #668
No description provided.