Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit edb75c8

Browse files
posvayyx990803
authored andcommitted
Fix hot reload in IE in strict mode (vuejs#4724)
Fix vuejs#4465
1 parent 12ecce5 commit edb75c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/transition/transition.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ const animDurationProp = animationProp + 'Duration'
3232
* transitions but not raf (e.g. Android 4.2 browser) - since
3333
* these environments are usually slow, we are giving it a
3434
* relatively large timeout.
35+
*
36+
* Binding to window is necessary to make hot reload work in
37+
* IE in strict mode
3538
*/
3639

37-
const raf = inBrowser && window.requestAnimationFrame
40+
const raf = inBrowser && window.requestAnimationFrame.bind(window)
3841
const waitForTransitionStart = raf
3942
/* istanbul ignore next */
4043
? function (fn) { raf(function () { raf(fn) }) }

0 commit comments

Comments
 (0)