owl
owl copied to clipboard
[FIX] smarter synthetic events
This commit fixes 2 behaviors regarding synthetic events:
-
"non-bubbling" events (such as 'mouseenter', 'focus', etc.) are not allowed anymore as synthetic events, since this would not work either way;
-
instead of an internal global variable to keep track of what events have already been registered with synthetic event handlers, special keys are now assigned on the document object. This has been done to avoid duplicate listeners when multiple instances of Owl are spawned.
Fixes https://github.com/odoo/owl/issues/1284