Update EventHandler.js

This commit is contained in:
Luis Fernando Molina committed 2020-04-02 11:53:36 +02:00
1 parent c55df928e8
commit 29fe67a466
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ function newEventHandler () {
}
function listenToEvent (eventType, handler, extraData) {
let eventSubscriptionId = Math.trunc(Math.random() * 1000000)
let eventSubscriptionId = newUniqueId()
eventHandlers.push([eventType, handler, extraData, eventSubscriptionId])
return eventSubscriptionId
}