Created
August 12, 2015 11:27
-
-
Save remoblaser/33dcfdb2e12803749b3e to your computer and use it in GitHub Desktop.
Force a DOM Reload if Google Chrome decides to fail on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forceRedraw = function(element){ | |
var disp = element.style.display; | |
element.style.display = 'none'; | |
var trick = element.offsetHeight; | |
element.style.display = disp; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment