Skip to content

Commit 1ec501e

Browse files
committed
fix raf bind in IE9
1 parent 85d6f11 commit 1ec501e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/platforms/web/runtime/transition-util.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ if (hasTransition) {
2828
}
2929

3030
// binding to window is necessary to make hot reload work in IE in strict mode
31-
const raf = (inBrowser && window.requestAnimationFrame.bind(window)) || setTimeout
31+
const raf = inBrowser && window.requestAnimationFrame
32+
? window.requestAnimationFrame.bind(window)
33+
: setTimeout
34+
3235
export function nextFrame (fn: Function) {
3336
raf(() => {
3437
raf(fn)

0 commit comments

Comments
 (0)