Tencent / vap

VAP是企鹅电竞开发,用于播放特效动画的实现方案。具有高压缩率、硬件解码等优点。同时支持 iOS,Android,Web 平台。
Other
3.89k stars 523 forks source link

修复onDestroy的两处编写错误 #287

Closed xiangwenhu closed 1 year ago

xiangwenhu commented 1 year ago
  1. 源代码src\video.ts 239 行是 onDestroy
    destroy() {
    this.cancelRequestAnimation();
    if (this.video) {
      this.offAll();
      this.video.parentNode && this.video.parentNode.removeChild(this.video);
      this.video = null;
    }
    this.options.onDestroy && this.options.onDestroy();
    }
  2. src\type.ts和readme 是 onDestory

以正常英文拼写和源码来看,应该修改为onDestroy