Moved console methods out of the root of the object

This commit is contained in:
Sam Potts
2017-11-09 20:01:13 +11:00
parent 66917fd39b
commit 4879bea4a0
11 changed files with 41 additions and 36 deletions

4
src/js/controls.js vendored
View File

@ -542,13 +542,13 @@ const controls = {
// Unsupported value
if (!this.options[setting].includes(value)) {
this.warn(`Unsupported value of '${value}' for ${setting}`);
this.console.warn(`Unsupported value of '${value}' for ${setting}`);
return;
}
// Disabled value
if (!this.config[setting].options.includes(value)) {
this.warn(`Disabled value of '${value}' for ${setting}`);
this.console.warn(`Disabled value of '${value}' for ${setting}`);
return;
}