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

View File

@ -26,7 +26,7 @@ const source = {
// Sources are not checked for support so be careful
change(input) {
if (!utils.is.object(input) || !('sources' in input) || !input.sources.length) {
this.warn('Invalid source format');
this.console.warn('Invalid source format');
return;
}