Skip to content

Commit

Permalink
Minor: remove obsolete comment
Browse files Browse the repository at this point in the history
  • Loading branch information
avernet committed Oct 29, 2024
1 parent 1fd60c8 commit 61179e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions xforms-web/src/main/scala/org/orbeon/xforms/InitSupport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,6 @@ object InitSupport {
private def initializeGlobalEventListenersIfNeeded(): Unit =
if (! topLevelListenerRegistered) {

// We are not using jQuery for `focusin` and `focusout` as jQuery registers its own listeners on `focus` and `blur`, maybe
// for compatibility with older browsers that didn't support `focusin` and `focusout`, and since they are different events,
// we're then unable stopping the propagation of those events
GlobalEventListenerSupport.addJsListener(dom.document, DomEventNames.Change, Events.change)
GlobalEventListenerSupport.addJsListener(dom.document, DomEventNames.FocusIn, Events.focus)
GlobalEventListenerSupport.addJsListener(dom.document, DomEventNames.FocusOut, Events.blur)
Expand Down

0 comments on commit 61179e7

Please sign in to comment.