Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Quick jQuery plugin to force element redraws
(function($){
$.fn.redraw = function(){
return $(this).each(function(){
var n = document.createTextNode(' ');
$(this).append(n);
setTimeout(function(){n.parentNode.removeChild(n)}, 0);
});
}
})(jQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment