From bca1baf1160a42c3b9617dc24df7481b2d8418c7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 24 Apr 2019 08:16:23 +0200 Subject: [PATCH] Event handler cleaning --- Container.js | 1 - EventHandler.js | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Container.js b/Container.js index bbb4d93ed..eb549c09f 100644 --- a/Container.js +++ b/Container.js @@ -38,7 +38,6 @@ function newContainer () { thisObject.frame.container = thisObject thisObject.eventHandler = newEventHandler() - thisObject.eventHandler.initialize() thisObject.eventHandler.name = pName thisObject.displacement = newDisplacement() diff --git a/EventHandler.js b/EventHandler.js index 3a17fd9a2..dcef6df7d 100644 --- a/EventHandler.js +++ b/EventHandler.js @@ -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