Created
November 9, 2012 01:25
-
-
Save gerad/4043133 to your computer and use it in GitHub Desktop.
This file contains 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
// force dom element redraws to work around chrome bugs | |
$.fn.redraw = function() { | |
return $(this).each(function() { | |
var n = document.createTextNode(' '); | |
$(this).append(n); | |
setTimeout(function() { n.parentNode.removeChild(n); }, 0); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment