Merge pull request #1065 from erikerikson/falsy-event-has-no-name-bugfix

Falsy event has no name attribute bugfix
This commit is contained in:
Eslam λ Hefnawy 2016-05-04 13:46:00 +07:00
commit 6582955215

View File

@ -188,7 +188,7 @@ class EventRemover extends S.classes.Plugin {
}
_eventRemove(event, region) {
if(!event) throw new SError(`Event could not be found: ${event.name}`);
if(!event) throw new SError(`Event could not be found in region ${region}`);
let eventType = event.type.toLowerCase();