From 0bd8596f182a22397c10a5da66c1af8d2d2159d9 Mon Sep 17 00:00:00 2001 From: ztplz Date: Thu, 3 Jan 2019 22:11:42 +0800 Subject: [PATCH] Fix tslint warning --- components/_util/raf.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/_util/raf.ts b/components/_util/raf.ts index 7d3e12dc8b..a0138e4239 100644 --- a/components/_util/raf.ts +++ b/components/_util/raf.ts @@ -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]; };