You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what: clear the domHandlerList when we unbind the function
why: when destroy video, we forget to remove the function binding in the list, so the next time we remove video, it will throw error.
…ndlerList when we unbind the function why: when destroy video, we forget to remove the function binding in the list, so the next time we remove video, it will throw error.
相关变量:videoEventHandlerList videoDomEventHandlerList,只有push没有pull,但解绑时索引每次都是从0开始。
所以多切几次流让 videoElement销毁创建多次 ,HandlerList就会一直push,导致最后销毁播放器实例时候解绑失败,会报告事件异常。
相关代码:
https://github.com/Chimeejs/chimee/blob/master/src/dispatcher/dom.js#L143
https://github.com/Chimeejs/chimee/blob/master/src/dispatcher/dom.js#L148
https://github.com/Chimeejs/chimee/blob/master/src/dispatcher/dom.js#L158
https://github.com/Chimeejs/chimee/blob/master/src/dispatcher/dom.js#L161
The text was updated successfully, but these errors were encountered: