Return the original jQuery collection to allow chaining. These comments don't allow code formatting, but: $.fn.redraw = function() { $(this).each(function() { var redraw = this.offsetHeight; }); return $(this); };
Return the original jQuery collection to allow chaining. These comments don't allow code formatting, but:
$.fn.redraw = function() {
$(this).each(function() {
var redraw = this.offsetHeight;
});
return $(this);
};