Second round of undef fixes

This commit is contained in:
rejas 2020-05-03 18:59:26 +02:00
parent b9d19cfcb4
commit c04fa496bf
9 changed files with 13 additions and 21 deletions

View file

@ -1,10 +1,12 @@
/* global Class, xyz */
/* Simple JavaScript Inheritance
* By John Resig https://johnresig.com/
*
* Inspired by base2 and Prototype
*
* MIT Licensed.
*/
// Inspired by base2 and Prototype
(function () {
var initializing = false;
var fnTest = /xyz/.test(function () { xyz; }) ? /\b_super\b/ : /.*/;

View file

@ -1,4 +1,4 @@
/* exported defaults */
/* global mmPort */
/* Magic Mirror
* Config Defaults

View file

@ -1,4 +1,4 @@
/* global Module, vendor */
/* global defaultModules, Module, vendor */
/* Magic Mirror
* Module and File loaders.

View file

@ -1,16 +1,12 @@
/* exported Log */
/* Magic Mirror
* Logger
* This logger is very simple, but needs to be extended.
* This system can eventually be used to push the log messages to an external target.
*
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*/
// This logger is very simple, but needs to be extended.
// This system can eventually be used to push the log messages to an external target.
var Log = (function() {
const Log = (function() {
return {
info: Function.prototype.bind.call(console.info, console),
log: Function.prototype.bind.call(console.log, console),

View file

@ -1,4 +1,4 @@
/* global Class, Loader, MMSocket, nunjucks, Translator */
/* global Class, cloneObject, Loader, MMSocket, nunjucks, Translator */
/* Magic Mirror
* Module Blueprint.

View file

@ -1,4 +1,4 @@
/* exported Translator */
/* global translations */
/* Magic Mirror
* Translator (l10n)

View file

@ -1,12 +1,9 @@
/* exported Utils */
/* Magic Mirror
* Utils
*
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
* MIT Licensed.
*/
var colors = require("colors/safe");
var Utils = {

View file

@ -1,4 +1,4 @@
/* global Module */
/* global cloneObject, Module */
/* Magic Mirror
* Module: Calendar

3
vendor/vendor.js vendored
View file

@ -1,12 +1,9 @@
/* exported vendor */
/* Magic Mirror
* Vendor File Definition
*
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*/
var vendor = {
"moment.js" : "node_modules/moment/min/moment-with-locales.js",
"moment-timezone.js" : "node_modules/moment-timezone/builds/moment-timezone-with-data.js",