Refactoring to Constructor

This commit is contained in:
Luis Fernando Molina committed 2019-05-09 08:07:43 +02:00
1 parent 42d9fc7e2c
commit e10425f852
2 files changed
+2 -3

No files matched your search

@@ -1,5 +1,5 @@
function newStrategyParts () {
function newStrategyPartConstructor () {
const MODULE_NAME = 'Strategy Parts'
const ERROR_LOG = true
const logger = newWebDebugLog()
@@ -146,4 +146,3 @@ function newStrategyParts () {
floatingLayer.killFloatingObject(pFloatingObjectHandle)
}
}
+1 -1
View File
@@ -55,7 +55,7 @@ function newFloatingSpace () {
thisObject.noteSets = newNoteSets()
thisObject.noteSets.initialize(thisObject.floatingLayer)
thisObject.strategyParts = newStrategyParts()
thisObject.strategyParts = newStrategyPartConstructor()
thisObject.strategyParts.initialize(thisObject.floatingLayer)
thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel)