ReferenceError: event is not defined var domainData = this._getDomainFromEvent(event)