mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Fix some trailing whitespace grunt errors
This commit is contained in:
parent
c8d5044e7a
commit
664196c5ef
@ -27,7 +27,7 @@ var Module = Class.extend({
|
|||||||
// visibility when hiding and showing module.
|
// visibility when hiding and showing module.
|
||||||
lockStrings: [],
|
lockStrings: [],
|
||||||
|
|
||||||
// Storage of the nunjuck Environment,
|
// Storage of the nunjuck Environment,
|
||||||
// This should not be referenced directly.
|
// This should not be referenced directly.
|
||||||
// Use the nunjucksEnvironment() to get it.
|
// Use the nunjucksEnvironment() to get it.
|
||||||
_nunjucksEnvironment: null,
|
_nunjucksEnvironment: null,
|
||||||
@ -156,7 +156,7 @@ var Module = Class.extend({
|
|||||||
/** nunjucksEnvironment()
|
/** nunjucksEnvironment()
|
||||||
* Returns the nunjucks environment for the current module.
|
* Returns the nunjucks environment for the current module.
|
||||||
* The environment is checked in the _nunjucksEnvironment instance variable.
|
* The environment is checked in the _nunjucksEnvironment instance variable.
|
||||||
*
|
|
||||||
* @returns Nunjucks Environment
|
* @returns Nunjucks Environment
|
||||||
*/
|
*/
|
||||||
nunjucksEnvironment: function() {
|
nunjucksEnvironment: function() {
|
||||||
|
@ -289,9 +289,9 @@ Module.register("calendar", {
|
|||||||
* This function accepts a number (either 12 or 24) and returns a moment.js LocaleSpecification with the
|
* This function accepts a number (either 12 or 24) and returns a moment.js LocaleSpecification with the
|
||||||
* corresponding timeformat to be used in the calendar display. If no number is given (or otherwise invalid input)
|
* corresponding timeformat to be used in the calendar display. If no number is given (or otherwise invalid input)
|
||||||
* it will a localeSpecification object with the system locale time format.
|
* it will a localeSpecification object with the system locale time format.
|
||||||
*
|
*
|
||||||
* @param {number} timeFormat Specifies either 12 or 24 hour time format
|
* @param {number} timeFormat Specifies either 12 or 24 hour time format
|
||||||
* @returns {moment.LocaleSpecification}
|
* @returns {moment.LocaleSpecification}
|
||||||
*/
|
*/
|
||||||
getLocaleSpecification: function(timeFormat) {
|
getLocaleSpecification: function(timeFormat) {
|
||||||
switch (timeFormat) {
|
switch (timeFormat) {
|
||||||
@ -430,7 +430,7 @@ Module.register("calendar", {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Shortens a string if it's longer than maxLength and add a ellipsis to the end
|
* Shortens a string if it's longer than maxLength and add a ellipsis to the end
|
||||||
*
|
*
|
||||||
* @param {string} string Text string to shorten
|
* @param {string} string Text string to shorten
|
||||||
* @param {number} maxLength The max length of the string
|
* @param {number} maxLength The max length of the string
|
||||||
* @param {boolean} wrapEvents Wrap the text after the line has reached maxLength
|
* @param {boolean} wrapEvents Wrap the text after the line has reached maxLength
|
||||||
|
@ -25,7 +25,7 @@ describe("Check configuration without modules", function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
before(function () {
|
before(function () {
|
||||||
// Set config sample for use in test
|
// Set config sample for use in test
|
||||||
process.env.MM_CONFIG_FILE = "tests/configs/without_modules.js";
|
process.env.MM_CONFIG_FILE = "tests/configs/without_modules.js";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user