Event handler cleaning
This commit is contained in:
1 parent
10b1a6511f
commit
bca1baf116
2 files changed
+2
-5
No files matched your search
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user