From 7cdb22cc1eaeac4a436f4e53d8813abc9be44e26 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 4 May 2019 18:25:12 +0200 Subject: [PATCH] Just Tyding --- FloatingSpace/FloatingObject.js | 7 +------ FloatingSpace/ProfileBall.js | 8 -------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/FloatingSpace/FloatingObject.js b/FloatingSpace/FloatingObject.js index bc023a4a4..14e4594b7 100644 --- a/FloatingSpace/FloatingObject.js +++ b/FloatingSpace/FloatingObject.js @@ -80,12 +80,7 @@ function newFloatingObject () { case 'Profile Ball': { thisObject.underlayingObject = newProfileBall() - thisObject.underlayingObject.initialize(onInitialized) - - function onInitialized (err) { - - } - + thisObject.underlayingObject.initialize() break } case 'Note': { diff --git a/FloatingSpace/ProfileBall.js b/FloatingSpace/ProfileBall.js index b3c387050..eaead239d 100644 --- a/FloatingSpace/ProfileBall.js +++ b/FloatingSpace/ProfileBall.js @@ -67,25 +67,17 @@ function newProfileBall () { function initialize () { for (let i = 0; i < ballStringMenu.length; i++) { let menuItem = ballStringMenu[i] - menuItem.iconOn = new Image() - menuItem.iconOn.onload = onImageLoad - function onImageLoad () { menuItem.iconOff = new Image() - menuItem.iconOff.onload = onImageLoad - function onImageLoad () { menuItem.canDrawIcon = true } - menuItem.iconOff.src = window.canvasApp.urlPrefix + menuItem.imagePathOff } - menuItem.iconOn.src = window.canvasApp.urlPrefix + menuItem.imagePathOn - menuItem.icon = menuItem.iconOn // The default value is ON. } }