keyword `this` inside closures referring to wrong object
Merge pull request #2338 from redbmk/master

keyword `this` inside closures referring to wrong object