Don't call iterate DOM several times in handlers
Merge pull request #156 from anton-ryzhov/event_handlers

Don't call iterate DOM several times in event handlers