Skip to content

Instantly share code, notes, and snippets.

@gerad
Created November 9, 2012 01:25
Show Gist options
  • Save gerad/4043133 to your computer and use it in GitHub Desktop.
Save gerad/4043133 to your computer and use it in GitHub Desktop.
// 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