re-remove unused old func and add =null to pos

This commit is contained in:
Cynthia Foxwell 2018-05-21 20:27:12 -06:00
parent 21075e78d2
commit 94240c98fb

View file

@ -24,7 +24,7 @@ exports = {
ourSections: [], ourSections: [],
_callbacks: {}, _callbacks: {},
_panels: {}, _panels: {},
addSection: function(name,label,color=null,callback,pos){ addSection: function(name,label,color=null,callback,pos=null){
let data = {}; let data = {};
data.section = name || `SAPI_${Math.floor(Math.random()*10000)}`; data.section = name || `SAPI_${Math.floor(Math.random()*10000)}`;
@ -44,15 +44,6 @@ exports = {
$settingsapi.ourSections.push({section:"HEADER",label:label}); $settingsapi.ourSections.push({section:"HEADER",label:label});
$settingsapi.sections.splice(pos ? pos : $settingsapi.sections.length-4,0,{section:"HEADER",label:label}); $settingsapi.sections.splice(pos ? pos : $settingsapi.sections.length-4,0,{section:"HEADER",label:label});
}, },
exportSections: function(){
let out = "";
for(i in $settingsapi._sections){
out = out + convertToText($settingsapi._sections[i]);
}
return out;
},
//All of these allow us to use Discord's elements. //All of these allow us to use Discord's elements.
elements: { elements: {
createVerticalPanel: function() { createVerticalPanel: function() {