Fixed consistency of event emitters in triggers.js