Merge pull request #409 from whitecolor/patch-3

Fix for #360 error in IE/Edge
pull/413/head
Simon Friis Vindum 6 years ago committed by GitHub
commit 3b04714e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ export type VNodeStyle = Record<string, string> & {
remove?: Record<string, string>
}
var raf = (typeof window !== 'undefined' && window.requestAnimationFrame) || setTimeout;
var raf = (typeof window !== 'undefined' && (window.requestAnimationFrame).bind(window)) || setTimeout;
var nextFrame = function(fn: any) { raf(function() { raf(fn); }); };
var reflowForced = false;

Loading…
Cancel
Save