Moved flag assignment before their execution
Added a test for mixed-bound listeners and flag()
Merge pull request #37 from bucha/master

Moved flag assignment before their execution