mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
Cleanup weatherprovider jsdoc
This commit is contained in:
parent
8ce1e2c956
commit
c8664d5952
@ -12,7 +12,7 @@ var WeatherProvider = Class.extend({
|
|||||||
// Weather Provider Properties
|
// Weather Provider Properties
|
||||||
providerName: null,
|
providerName: null,
|
||||||
|
|
||||||
// The following properties have accestor methods.
|
// The following properties have accessor methods.
|
||||||
// Try to not access them directly.
|
// Try to not access them directly.
|
||||||
currentWeatherObject: null,
|
currentWeatherObject: null,
|
||||||
weatherForecastArray: null,
|
weatherForecastArray: null,
|
||||||
@ -120,8 +120,8 @@ WeatherProvider.providers = [];
|
|||||||
/**
|
/**
|
||||||
* Static method to register a new weather provider.
|
* Static method to register a new weather provider.
|
||||||
*
|
*
|
||||||
* @param providerIdentifier
|
* @param {string} providerIdentifier The name of the weather provider
|
||||||
* @param providerDetails
|
* @param {object} providerDetails The details of the weather provider
|
||||||
*/
|
*/
|
||||||
WeatherProvider.register = function (providerIdentifier, providerDetails) {
|
WeatherProvider.register = function (providerIdentifier, providerDetails) {
|
||||||
WeatherProvider.providers[providerIdentifier.toLowerCase()] = WeatherProvider.extend(providerDetails);
|
WeatherProvider.providers[providerIdentifier.toLowerCase()] = WeatherProvider.extend(providerDetails);
|
||||||
@ -130,8 +130,9 @@ WeatherProvider.register = function (providerIdentifier, providerDetails) {
|
|||||||
/**
|
/**
|
||||||
* Static method to initialize a new weather provider.
|
* Static method to initialize a new weather provider.
|
||||||
*
|
*
|
||||||
* @param providerIdentifier
|
* @param {string} providerIdentifier The name of the weather provider
|
||||||
* @param delegate
|
* @param {object} delegate The weather module
|
||||||
|
* @returns {object} The new weather provider
|
||||||
*/
|
*/
|
||||||
WeatherProvider.initialize = function (providerIdentifier, delegate) {
|
WeatherProvider.initialize = function (providerIdentifier, delegate) {
|
||||||
providerIdentifier = providerIdentifier.toLowerCase();
|
providerIdentifier = providerIdentifier.toLowerCase();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user