Pass block instance to fix closure context

It was using `window` because the code is wrapped in a closure
Merge pull request #201 from Shorthand/bug/formatter-event-wrong-argument

Pass block instance to fix closure context