Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Apr 30, 2023
1 parent 30490b2 commit b104422
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/org/htmlunit/html/DomElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -1463,10 +1463,7 @@ && getPage().getWebClient().getBrowserVersion().hasFeature(EVENT_ONCLICK_USES_PO
* @return the execution result, or {@code null} if nothing is executed
*/
public ScriptResult fireEvent(final String eventType) {
if (getPage().getWebClient().isJavaScriptEnabled()) {
return fireEvent(new Event(this, eventType));
}
return null;
return fireEvent(new Event(this, eventType));
}

/**
Expand Down

0 comments on commit b104422

Please sign in to comment.