Changed implementation of a.then(b) to avoid passing isEvent into callback