Skip to content

Commit

Permalink
Revert "Remove deprecated built-in apply"
Browse files Browse the repository at this point in the history
This reverts commit 7678c04.
  • Loading branch information
buffer committed Oct 16, 2024
1 parent 7678c04 commit b92151c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thug/DOM/DFT.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def run_event_handler(self, handler, evtObject):
self.window.event = evtObject
handler()
else:
handler(evtObject.currentTarget)
handler.apply(evtObject.currentTarget)

def handle_window_event(self, onevt):
if onevt not in self.handled_on_events:
Expand Down
2 changes: 1 addition & 1 deletion thug/DOM/W3C/Events/EventTarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _do_dispatch(self, c, evtObject):
):
listener()
else:
listener(evtObject.currentTarget)
listener.apply(evtObject.currentTarget)

def do_dispatch(self, c, evtObject):
try:
Expand Down

0 comments on commit b92151c

Please sign in to comment.