Only call jQuery(this) when needed. Close gh-1260.