77const Module = Class . extend ( {
88
99 /**
10- ********************************************************
11- * All methods (and properties) below can be subclassed . *
12- ********************************************************
10+ *********************************************************
11+ * All methods (and properties) below can be overridden . *
12+ *********************************************************
1313 */
1414
1515 // Set the minimum MagicMirror² module version for this module.
@@ -75,8 +75,8 @@ const Module = Class.extend({
7575
7676 /**
7777 * Generates the dom which needs to be displayed. This method is called by the MagicMirror² core.
78- * This method can to be subclassed if the module wants to display info on the mirror.
79- * Alternatively, the getTemplate method could be subclassed .
78+ * This method can to be overridden if the module wants to display info on the mirror.
79+ * Alternatively, the getTemplate method could be overridden .
8080 * @returns {HTMLElement|Promise } The dom or a promise with the dom to display.
8181 */
8282 getDom ( ) {
@@ -109,7 +109,7 @@ const Module = Class.extend({
109109 /**
110110 * Generates the header string which needs to be displayed if a user has a header configured for this module.
111111 * This method is called by the MagicMirror² core, but only if the user has configured a default header for the module.
112- * This method needs to be subclassed if the module wants to display modified headers on the mirror.
112+ * This method needs to be overridden if the module wants to display modified headers on the mirror.
113113 * @returns {string } The header to display above the header.
114114 */
115115 getHeader ( ) {
@@ -118,8 +118,8 @@ const Module = Class.extend({
118118
119119 /**
120120 * Returns the template for the module which is used by the default getDom implementation.
121- * This method needs to be subclassed if the module wants to use a template.
122- * It can either return a template sting , or a template filename.
121+ * This method needs to be overridden if the module wants to use a template.
122+ * It can either return a template string , or a template filename.
123123 * If the string ends with '.html' it's considered a file from within the module's folder.
124124 * @returns {string } The template string of filename.
125125 */
@@ -129,7 +129,7 @@ const Module = Class.extend({
129129
130130 /**
131131 * Returns the data to be used in the template.
132- * This method needs to be subclassed if the module wants to use a custom data.
132+ * This method needs to be overridden if the module wants to use a custom data.
133133 * @returns {object } The data for the template
134134 */
135135 getTemplateData ( ) {
@@ -196,9 +196,9 @@ const Module = Class.extend({
196196 } ,
197197
198198 /**
199- ********************************************
200- * The methods below don't need subclassing . *
201- ********************************************
199+ ***********************************************
200+ * The methods below should not be overridden . *
201+ ***********************************************
202202 */
203203
204204 /**
0 commit comments