From 335d080f0ceea6002984c9035508a70112b04346 Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Sat, 12 Dec 2020 22:05:11 -0500 Subject: [PATCH] Code cleanup --- js/technical/layerSupport.js | 2 +- js/technical/temp.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/js/technical/layerSupport.js b/js/technical/layerSupport.js index 72f73d4..37efbb3 100644 --- a/js/technical/layerSupport.js +++ b/js/technical/layerSupport.js @@ -214,7 +214,7 @@ function addNode(layerName, layerData){ // Does the same thing, but for non-laye // If data is a function, return the result of calling it. Otherwise, return the data. function readData(data, args=null){ - if (!!(data && data.constructor && data.call && data.apply)) + if ((!!data && data.constructor && data.call && data.apply)) return data(args); else return data; diff --git a/js/technical/temp.js b/js/technical/temp.js index 631ec7c..da31d2d 100644 --- a/js/technical/temp.js +++ b/js/technical/temp.js @@ -164,8 +164,6 @@ function constructAchievementStyles(layer){ } } -var DIR_MARGINS = ["margin-bottom", "margin-top", "margin-right", "margin-left"] - function constructBarStyles(layer){ if (layers[layer].bars === undefined) return @@ -207,7 +205,6 @@ function setupBarStyles(layer){ for (id in layers[layer].bars){ let bar = tmp[layer].bars[id] bar.dims = {} - let dir = bar.direction bar.fillDims = {} } } \ No newline at end of file