Skip to content

Commit

Permalink
fix: Refactor evented to make mincompatable with Chrome 53
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben committed Jul 21, 2024
1 parent e78bcc7 commit 7418bc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"shx": "^0.3.2",
"sinon": "^11.1.1",
"typescript": "^5.5.2",
"uglify-js": "^3.6.0",
"uglify-js": "^3.19.0",
"unified": "^7.0.2",
"videojs-generate-karma-config": "^8.1.0",
"videojs-languages": "^2.0.0",
Expand Down
5 changes: 4 additions & 1 deletion src/js/mixins/evented.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ const normalizeListenArgs = (self, args, fnName) => {

[type, listener] = args;
} else {
[target, type, listener] = args;
target = args[0];
type = args[1];
listener = args[2];
// [target, type, listener] = args;
}

validateTarget(target, self, fnName);
Expand Down

0 comments on commit 7418bc2

Please sign in to comment.