• [ADDED IN VERSION 5.0.3]
    Cancel a frame returned by window.requestFrame() or window.requestAnimationFrameMM(). Because the token type of requestAnimationFrameMM can either be that of a Timeout or an AnimationFrame, you must use this method instead of cancelAnimationFrame() to guarantee that it is cancelled.

    Parameters

    • token: number

    Returns void

    Example

    var token = requestFrame(myCall);
    cancelFrame(token);

    Method

    cancelFrame