Update EventHandler.js
This commit is contained in:
1 parent
c55df928e8
commit
29fe67a466
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user