Skip to content

fix: prevent event listener accumulation and memory leaks#1373

Open
DuarteFrugoli wants to merge 1 commit into
DIYgod:masterfrom
DuarteFrugoli:fix/event-listener-leaks
Open

fix: prevent event listener accumulation and memory leaks#1373
DuarteFrugoli wants to merge 1 commit into
DIYgod:masterfrom
DuarteFrugoli:fix/event-listener-leaks

Conversation

@DuarteFrugoli

Copy link
Copy Markdown
  • events.js: add off() method to allow removing specific listeners
  • contextmenu.js: store maskHideHandler as instance prop; remove in destroy()
  • danmaku.js: store rAF id and cancel in destroy(); fix clear() container ref
  • player.js: name HLS/FLV/DASH listeners so switchQuality properly removes them
  • controller.js: store airplay click handler as instance prop; remove in destroy()

- events.js: add off() method to allow removing specific listeners
- contextmenu.js: store maskHideHandler as instance prop; remove in destroy()
- danmaku.js: store rAF id and cancel in destroy(); fix clear() container ref
- player.js: name HLS/FLV/DASH listeners so switchQuality properly removes them
- controller.js: store airplay click handler as instance prop; remove in destroy()
@netlify

netlify Bot commented Jun 3, 2026

Copy link
Copy Markdown

Deploy Preview for dplayerapp canceled.

Name Link
🔨 Latest commit b32c247
🔍 Latest deploy log https://app.netlify.com/projects/dplayerapp/deploys/6a1fa299a8465f00081f9e84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant