This is a AMD copy of the nodejs event