Autoformatter applied on all js files

This commit is contained in:
Luis Fernando Molina committed 2019-02-23 10:32:06 +01:00
1 parent 72c1017b20
commit c627aedcf6
59 files changed
+9087 -10892

No files matched your search

+16 -18
View File
@@ -1,20 +1,18 @@
function newWebDebugLog() {

function newWebDebugLog () {
let thisObject = {
write: write,
fileName: undefined
}
let thisObject = {
write: write,
fileName: undefined
return thisObject
function write (pText) {
console.log(spacePad(thisObject.fileName, 50) + ' : ' + pText)
function spacePad (str, max) {
str = str.toString()
return str.length < max ? spacePad(' ' + str, max) : str
}
return thisObject;
function write(pText) {
console.log(spacePad(thisObject.fileName, 50) + " : " + pText);
function spacePad(str, max) {
str = str.toString();
return str.length < max ? spacePad(" " + str, max) : str;
}
}
}
}
}