Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Jan 9, 2025
1 parent 0b6473b commit 70dcddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/events/lib/onoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default function onoff(target) {
let m = map.get(target);

if (!m) {
const on = (target.addListener ?? target.addEventListener).bind(target);
const off = (target.removeListener ?? target.removeEventListener).bind(
const on = (target.addEventListener ?? target.addListener).bind(target);
const off = (target.removeEventListener ?? target.removeListener).bind(
target,
);
const once = (
Expand Down

0 comments on commit 70dcddf

Please sign in to comment.