Transactions now work correctly -- saved `this` from mangling
Merge pull request #1 from casetext/fix-flushing

Transactions now work correctly -- saved `this` from mangling