Skip to content

Commit

Permalink
Fix hot reload in IE in strict mode
Browse files Browse the repository at this point in the history
Fix #4465
  • Loading branch information
posva authored Jan 16, 2017
1 parent 12ecce5 commit ff32ad1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transition/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ const animDurationProp = animationProp + 'Duration'
* transitions but not raf (e.g. Android 4.2 browser) - since
* these environments are usually slow, we are giving it a
* relatively large timeout.
*
* Binding to window is necessary to make hot reload work in
* IE in strict mode
*/

const raf = inBrowser && window.requestAnimationFrame
const raf = inBrowser && window.requestAnimationFrame.bind(window)
const waitForTransitionStart = raf
/* istanbul ignore next */
? function (fn) { raf(function () { raf(fn) }) }
Expand Down

0 comments on commit ff32ad1

Please sign in to comment.