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