Skip to content

Commit c66991d

Browse files
posvayyx990803
authored andcommitted
Fix hot reload in IE in strict mode (vuejs#4725)
Following a fix for v1 at vuejs#4274 for issue vuejs#4465
1 parent a23b22e commit c66991d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ if (hasTransition) {
2727
}
2828
}
2929

30-
const raf = (inBrowser && window.requestAnimationFrame) || setTimeout
30+
// binding to window is necessary to make hot reload work in IE in strict mode
31+
const raf = (inBrowser && window.requestAnimationFrame.bind(window)) || setTimeout
3132
export function nextFrame (fn: Function) {
3233
raf(() => {
3334
raf(fn)

0 commit comments

Comments
 (0)