fixed JQuery.cur in closure (use $this instead of this), close #2218