Was calling fireEvent(type, data) with undefined "type" parameter.