angular-youtube-embed icon indicating copy to clipboard operation
angular-youtube-embed copied to clipboard

Fix(Memory Leak)

Open Millsky opened this issue 8 years ago • 0 comments

Used Youtube API's eventListener Bindings to reduce memory leak. Previously the entire scope of the angular application would not get garbage collected when events were bound during instantiation of the player object. Switching to the API .addEventListener fixed this issue.

https://developers.google.com/youtube/iframe_api_reference

Millsky avatar Oct 02 '17 19:10 Millsky