mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +00:00
Fix all default boolean options
This commit is contained in:
parent
4257d0c1cf
commit
abf3bf17f9
1 changed files with 10 additions and 10 deletions
|
@ -135,18 +135,18 @@
|
||||||
* Setting default.
|
* Setting default.
|
||||||
*/
|
*/
|
||||||
this.opt = {
|
this.opt = {
|
||||||
logInConsole : opt.logInConsole || true,
|
logInConsole : opt.logInConsole !== false,
|
||||||
logInFile : opt.logInFile || true,
|
logInFile : opt.logInFile !== false,
|
||||||
|
|
||||||
contextMediumSize : opt.contextMediumSize || 45,
|
contextMediumSize : opt.contextMediumSize || 45,
|
||||||
spaceSize : opt.spaceSize || 4,
|
spaceSize : opt.spaceSize || 4,
|
||||||
|
|
||||||
colors : opt.colors || "cyan",
|
colors : opt.colors || "cyan",
|
||||||
|
|
||||||
alwaysTags : opt.alwaysTags || false,
|
alwaysTags : opt.alwaysTags === true,
|
||||||
alwaysLocation : opt.alwaysLocation || false,
|
alwaysLocation : opt.alwaysLocation === true,
|
||||||
alwaysTime : opt.alwaysTime || false,
|
alwaysTime : opt.alwaysTime === true,
|
||||||
alwaysDate : opt.alwaysDate || false
|
alwaysDate : opt.alwaysDate === true
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -274,10 +274,10 @@
|
||||||
opt = {};
|
opt = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
opt.tags = opt.tags || false;
|
opt.tags = opt.tags === true;
|
||||||
opt.location = opt.location || false;
|
opt.location = opt.location === true;
|
||||||
opt.time = opt.time || false;
|
opt.time = opt.time === true;
|
||||||
opt.date = opt.date || false;
|
opt.date = opt.date === true;
|
||||||
|
|
||||||
var result = "";
|
var result = "";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue