Event handler cleaning

This commit is contained in:
Luis Fernando Molina committed 2019-04-24 08:16:23 +02:00
1 parent 10b1a6511f
commit bca1baf116
2 files changed
+2 -5

No files matched your search

-1
View File
@@ -38,7 +38,6 @@ function newContainer () {
thisObject.frame.container = thisObject
thisObject.eventHandler = newEventHandler()
thisObject.eventHandler.initialize()
thisObject.eventHandler.name = pName
thisObject.displacement = newDisplacement()
+2 -4
View File
@@ -2,14 +2,12 @@
function newEventHandler () {
let thisObject = {
name: undefined, // This is for debugging purposes only.
parentEventHandler: undefined, // Here we store the parent cointainer zoom object.
listenToEvent: listenToEvent,
stopListening: stopListening,
raiseEvent: raiseEvent,
initialize: initialize
raiseEvent: raiseEvent
}
var eventHandlers = [] // Here we store all the functions we will call when an event is comming.
var eventHandlers = [] // Here we store all the functions we will call when an event is raiseed.
return thisObject