1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-25 01:41:45 +00:00

Code cleanup

This commit is contained in:
Acamaeda 2020-12-12 22:05:11 -05:00
parent c885114791
commit 335d080f0c
2 changed files with 1 additions and 4 deletions

View file

@ -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. // If data is a function, return the result of calling it. Otherwise, return the data.
function readData(data, args=null){ function readData(data, args=null){
if (!!(data && data.constructor && data.call && data.apply)) if ((!!data && data.constructor && data.call && data.apply))
return data(args); return data(args);
else else
return data; return data;

View file

@ -164,8 +164,6 @@ function constructAchievementStyles(layer){
} }
} }
var DIR_MARGINS = ["margin-bottom", "margin-top", "margin-right", "margin-left"]
function constructBarStyles(layer){ function constructBarStyles(layer){
if (layers[layer].bars === undefined) if (layers[layer].bars === undefined)
return return
@ -207,7 +205,6 @@ function setupBarStyles(layer){
for (id in layers[layer].bars){ for (id in layers[layer].bars){
let bar = tmp[layer].bars[id] let bar = tmp[layer].bars[id]
bar.dims = {} bar.dims = {}
let dir = bar.direction
bar.fillDims = {} bar.fillDims = {}
} }
} }