Fix tslint warning

This commit is contained in:
ztplz 2019-01-03 22:11:42 +08:00 committed by 偏右
parent f092d5a32e
commit 0bd8596f18

View File

@ -28,7 +28,7 @@ export default function wrapperRaf(callback: () => void, delayFrames: number = 1
return myId;
}
wrapperRaf.cancel = function(id: number) {
raf.cancel(ids[id]);
delete ids[id];
wrapperRaf.cancel = function(pid: number) {
raf.cancel(ids[pid]);
delete ids[pid];
};