mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 09:42:21 -04:00
Run eslint over files, see what gets fixed automatically and clean up
This commit is contained in:
parent
f4eae72c48
commit
43bcf4ab98
11 changed files with 72 additions and 24 deletions
11
js/class.js
11
js/class.js
|
@ -57,7 +57,9 @@
|
|||
: prop[name];
|
||||
}
|
||||
|
||||
// The dummy class constructor
|
||||
/**
|
||||
* The dummy class constructor
|
||||
*/
|
||||
function Class() {
|
||||
// All construction is actually done in the init method
|
||||
if (!initializing && this.init) {
|
||||
|
@ -78,8 +80,11 @@
|
|||
};
|
||||
})();
|
||||
|
||||
//Define the clone method for later use.
|
||||
//Helper Method
|
||||
/**
|
||||
* Define the clone method for later use. Helper Method.
|
||||
*
|
||||
* @param obj
|
||||
*/
|
||||
function cloneObject(obj) {
|
||||
if (obj === null || typeof obj !== "object") {
|
||||
return obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue