Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Documentation cleanup

Mike McGann8946932656cc
diff --git a/src/js/Date.js b/src/js/Date.js
index 2efedbe84..adde29b94 100644
--- a/src/js/Date.js
+++ b/src/js/Date.js
@@ -10,8 +10,9 @@
*/
/**
- * Namespace: Date
* Date handling utilities.
+ *
+ * @class Date
*/
(function() {
@@ -21,19 +22,17 @@
};
/**
- * Function: parseISOString
- * Parses a UTC ISO 8601 date.
+ * Parses a UTC ISO 8601 date.
*
- * Parameters:
- * dateAsString - The string must be in the form of yyyy-MM-ddThh:mm:ssZ.
- * Only the year, month, and day are required and the remaining string can
- * be shortened. The Z to denote UTC is optional.
- *
- * Returns:
- * A Date object.
+ * @method parseISOString
+ * @static
*
- * Throws:
- * An exception if the string is invalid.
+ * @param dateAsString {string} The string must be in the form of
+ * yyyy-MM-ddThh:mm:ssZ. Only the year, month, and day are required and the
+ * remaining string can be shortened. The Z to denote UTC is optional.
+ *
+ * @return {Date} converted string as a date object, throws an exception if
+ * the string is invalid
*/
Date.parseISOString = function(dateAsString) {
var dateTimeArr = dateAsString.split(/T/);
@@ -62,25 +61,22 @@
}
return date;
};
-
- /**
- * Class: Date
- */
-
+
/**
- * Function: compareTo
* Compares this instance to a Date object and return an number indication
* of their relative values.
*
* This method copied from datejs:
* http://code.google.com/p/datejs/
*
- * Parameters:
- * date - Date object to compare [Required]
+ * @method compareTo
+ *
+ * @param date {Date} Date object to compare.
*
- * Returns:
- * 1 = this is greaterthan date. -1 = this is lessthan date.
- * 0 = values are equal
+ * @returns {integer}
+ * * 1 = this is greaterthan date.
+ * * -1 = this is lessthan date.
+ * * 0 = values are equal
*/
Date.prototype.compareTo = function(date) {
if (isNaN(this)) {
@@ -94,11 +90,10 @@
};
/**
- * Function: clearUTCTime
* Sets UTC hours, minutes, seconds, and milliseconds to zero.
*
- * Returns:
- * The date object.
+ * @method clearUTCTime
+ * @return {Date} same instance of this object.
*/
Date.prototype.clearUTCTime = function() {
this.setUTCHours(0);
@@ -109,44 +104,29 @@
};
/**
- * Function: clone
* Creates a copy of this date object.
*
- * Returns:
- * New instance of the object.
+ * @metohd clone
+ * @return {Date} new instance of this object.
*/
Date.prototype.clone = function() {
return new Date(this.getTime());
};
/**
- * Function: toISOString
* Converts to an ISO 8601 formatted string in UTC.
*
* This function provided by OpenLayers.
*
- * Example;
- * (begin code)
- * > new Date().toISOString()
- * "2013-03-29T14:33:38.692Z"
- * (end code)
- *
- * Returns:
- * String in the form of yyyy-MM-ddThh:mm:ss.sssZ.
+ * @method toISOString
+ * @return {String} In the form of yyyy-MM-ddThh:mm:ss.sssZ.
*/
/**
- * Function: toISOStringDate
* Converts to an ISO 8601 formatted string in UTC without the time values.
*
- * Example:
- * (begin code)
- * > new Date().toISOStringDate()
- * "2013-03-29"
- * (end code)
- *
- * Returns:
- * String in the form of yyyy-MM-dd.
+ * @method toISOStringDate
+ * @return {String} In the form of yyyy-MM-dd.
*/
Date.prototype.toISOStringDate = function() {
return this.toISOString().split("T")[0];
diff --git a/src/js/Logging.js b/src/js/Logging.js
index b6169b492..ecb318d20 100644
--- a/src/js/Logging.js
+++ b/src/js/Logging.js
@@ -10,34 +10,31 @@
*/
/**
- * Namespace: Logging
* Simple logging utility.
*
- * (begin code)
- * var log = Logging.getLogger()
- * log.message("This is a message");
- * (end code)
+ * Example:
+ *
+ * var log = Logging.getLogger()
+ * log.message("This is a message");
*
- * Debug messages can be turned on or off
- * (begin code)
- * var log = Logger.getLogger()
- * log.debug("This is not printed");
+ * Debug messages can be turned on or off:
*
- * Logging.debug();
- * log.debug("This is printed");
+ * var log = Logger.getLogger()
+ * log.debug("This is not printed");
*
- * Logging.undebug();
- * log.debug("This is not printed");
- * (end code)
+ * Logging.debug();
+ * log.debug("This is printed");
*
- * Assign names to loggers
- * (begin code)
- * var logA = Logger.getLogger("A");
- * var logB = Logger.getLogger("B");
- * Logging.debug("B");
- * logA.debug("This is not printed");
- * logB.debug("This is printed");
- * (end code)
+ * Logging.undebug();
+ * log.debug("This is not printed");
+ *
+ * Assign names to loggers:
+ *
+ * var logA = Logger.getLogger("A");
+ * var logB = Logger.getLogger("B");
+ * Logging.debug("B");
+ * logA.debug("This is not printed");
+ * logB.debug("This is printed");
*
* There is no hierarchy of loggers as in log4j. Turning on debug logging
* for a given name only enables loggers that exactly match that name.
@@ -45,6 +42,10 @@
* This delgates to the corresponding console methods if available, otherwise
* it delgates to console.log. If console is not defined, nothing is
* printed out.
+ *
+ * @module Logging
+ * @class Logging
+ * @static
*/
(function(ns) {
@@ -52,16 +53,16 @@
var debugAll = false;
/**
- * Function: getLogger
* Gets the logger with the specified name. If a logger with that name
* does not exist, one is created.
*
- * Parameters:
- * name - Name of the logger to get. If not specified, the unnamed logger
- * is returned.
+ * @method getLogger
+ * @static
+ *
+ * @param name {String} Name of the logger to get. If not specified, the
+ * unnamed loggeris returned.
*
- * Returns:
- * The <Logger> for the given name.
+ * @return {Logger} The Logger for the given name.
*/
ns.getLogger = function(name) {
var logger = null;
@@ -79,13 +80,14 @@
}
/**
- * Function: debug
* Turns on logging of debug messages.
*
- * Parameters:
- * name - If specified, this enables debug logging for the <Logges>
- * with the given name. If not specified, this enables debug logging
- * for all <Loggers>.
+ * @method debug
+ * @static
+ *
+ * @param name {String} If specified, this enables debug logging for the
+ * Logger with the given name. If not specified, this enables debug
+ * logging for all Loggers.
*/
ns.debug = function(name) {
if ( name ) {
@@ -99,13 +101,14 @@
};
/**
- * Function: undebug
* Turns off logging of debug messages.
*
- * Parameters:
- * namespace - If specified, this disables logging for the <Logger>
+ * @method undebug
+ * @static
+ *
+ * @param name {string} If specified, this disables logging for the Logger
* with the given name. If not specified, this disables debug logging
- * for all <Loggers>.
+ * for all Loggers.
*/
ns.undebug = function(name) {
if ( name ) {
@@ -126,8 +129,10 @@
}
/**
- * Class: Logging.Logger
* Logging methods.
+ *
+ * @class Logger
+ * @for Logging
*/
var Logger = function() {
@@ -135,79 +140,86 @@
var debugEnabled = false;
/**
- * Method: message
* Prints an error message to the console. Uses console.log or does
* nothing if console does not exist.
*
- * Parameters:
- * message - The message to print to the console.
+ * @method message
+ * @for Logger
+ *
+ * @param [message]* {object} The message to print to the console.
*/
self.message = ( !window.console || !window.console.log )
? function() {} : console.log.bind(console);
/**
- * Method: error
* Prints an error message to the console. Uses console.error if
* it exists, otherwise uses console.log. Does nothing if console
* does not exist.
*
- * Parameters:
- * message - The message to print to the console.
+ * @method error
+ * @for Logger
+ *
+ * @param [message]* {object} The message to print to the console.
*/
self.error = ( !window.console || !window.console.error )
? self.message: console.error.bind(console);
/**
- * Method: warn
* Prints an warning message to the console. Uses console.warn if
* it exists, otherwise uses console.log. Does nothing if console
* does not exist.
*
- * Parameters:
- * message - The message to print to the console.
+ * @method warn
+ * @for Logger
+ *
+ * @param [message]* {object} The message to print to the console.
*/
self.warn = ( !window.console || !window.console.warn )
? self.message : console.warn.bind(console);
/**
- * Method: info
* Prints an information message to the console. Uses console.info if
* it exists, otherwise uses console.log. Does nothing if console
* does not exist.
*
- * Parameters:
- * message - The message to print to the console.
+ * @method info
+ * @for Logger
+ *
+ * @param [message]* {object} The message to print to the console.
*/
self.info = ( !window.console || !window.console.info )
? self.message : console.info.bind(console);
/**
- * Method: trace
* Prints a stack trace to the console. If console.trace does not
* exist, this method does nothing.
+ *
+ * @method trace
+ * @for Logger
*/
self.trace = ( !window.console || !window.console.trace )
? function() {} : console.trace;
/**
- * Method: debug
* Prints a debug message to the console if debugging is enabled.
* Debugging can be enabled by calling Logging.debug with the name
* of this logger, by calling Logging.debug with no parameters,
* or by calling setDebugEnabled on this logger. If the console object
* does not exist, this method does nothing.
*
- * Parameters:
- * message - The message to print to the console.
+ * @method debug
+ * @for Logger
+ *
+ * @param [message]* {object} The message to print to the console.
*/
self.debug = function() {};
/**
- * Method: setDebugEnabled
* Enables or disables logging of debug messages.
*
- * Parameters:
- * enabled - if true, enables debug messages.
+ * @method setDebugEnabled
+ *
+ * @param enabled {boolean} If true, enables debug messages.
*/
self.setDebugEnabled = function(enabled) {
if ( enabled ) {
@@ -219,11 +231,12 @@
};
/**
- * Method: isDebugEnabled
+ * Indicates if logging messages are enabled.
+ *
+ * @method isDebugEnabled
*
- * Returns:
- * true if debug messages will be printed to the console, otherwise
- * returns false.
+ * @return {boolean} True if debug messages will be printed to the
+ * console, otherwise returns false.
*/
self.isDebugEnabled = function() {
return debugEnabled;
diff --git a/src/js/Worldview.js b/src/js/Worldview.js
index c6963f272..77467e8b2 100644
--- a/src/js/Worldview.js
+++ b/src/js/Worldview.js
@@ -1,53 +1,79 @@
/**
+ * Constants and utility functions.
+ *
* @module Worldview
- * @main
+ * @class Worldview
+ * @static
*/
(function(ns) {
/**
- * Constant: NAME
* Official name of this application.
+ *
+ * @property NAME {string}
+ * @final
+ * @static
*/
ns.NAME = "EOSDIS Worldview";
/**
- * Constant: VERSION
* Release version string.
+ *
+ * @property VERSION {string}
+ * @final
+ * @static
*/
ns.VERSION = "0.6.0";
/**
- * Constant: BUILD_TIMESTAMP
* Date and time Worldview was built. This value is changed during the
* build process.
+ *
+ * @property BUILD_TIMESTAMP {string}
+ * @final
+ * @static
*/
ns.BUILD_TIMESTAMP = "@BUILD_TIMESTAMP@";
+ /**
+ * Delay, in hours, from aquisition until data is available in GIBS.
+ *
+ * @property GIBS_HOUR_DELAY {integer}
+ * @final
+ * @static
+ */
ns.GIBS_HOUR_DELAY = 3;
+ /**
+ * Determines if Worldview is being run in development mode.
+ *
+ * @method isDevelopment
+ * @static
+ *
+ * @return {boolean} Returns true if being run from the source directory,
+ * otherwise returns false if deployed to a web directory.
+ */
ns.isDevelopment = function() {
return ns.BUILD_TIMESTAMP.indexOf("BUILD_TIMESTAMP") >= 0;
};
/**
- * Function: namespace
* Defines a namespace under Worldview. Each argument is an object path
* delimited by periods. For each path item, an empty object is created if
* one does not yet exist. For example:
*
- * (begin code)
- * Worldview.namespace("foo.bar");
- * (end code)
+ * Worldview.namespace("foo.bar");
*
* If Worldview.foo does not exist, it wil be created with an empty object.
* If Worldview.foo.bar does not exist, it will be created with an empty
* object.
*
- * Parameters:
- * (varargs) - Object path as a string, delimited by periods
+ * @method namespace
+ * @static
*
- * Returns:
- * The newly created namespace object.
+ * @param [arguments]* {String} Object path, delimited by periods
+ *
+ * @return {Object} The newly created namespace object.
*/
ns.namespace = function() {
var obj;
@@ -62,14 +88,42 @@
return obj;
};
+ /**
+ * Gets the current time or the value set by overrideNow. Use this
+ * instead of the Date methods to allow debugging alternate "now" times.
+ *
+ * @method now
+ * @static
+ *
+ * @return {Date} The current time or the value set by overrideNow.
+ */
ns.now = function() {
return new Date();
}
+ /**
+ * Gets the current day or the value set by overrideNow. Use this
+ * instead of the Date methods to allow debugging alternate "now" times.
+ *
+ * @method today
+ * @static
+ *
+ * @return {Date} The current time, or the vlaue set by overrideNow, with
+ * the UTC hours, minutes, and seconds fields set to zero.
+ */
ns.today = function() {
return new Date().clearUTCTime();
}
-
+
+ /**
+ * Overrides the times returned by now() and today().
+ *
+ * @method overrideNow
+ * @static
+ *
+ * @param {Date} Return this date object of now() and today() instead
+ * of the current time.
+ */
ns.overrideNow = function(date) {
var overrideToday = date.clone().clearUTCTime();
ns.now = function() {
@@ -81,16 +135,17 @@
};
/**
- * Function: error
* Worldview general error handler. The error is reported to the browser
* console and, if the JavaScript library with YAHOO.widget.Panel is
* found, opens a notification panel for the end user.
*
- * Parameters:
- * message - Error message to display to the user.
- * cause - Description of the error that does not need to be shown to
- * the user, usually the message of the exception that was
- * caught.
+ * @method error
+ * @static
+ *
+ * @param message {string} Error message to display to the user.
+ *
+ * @param cause {exception|string} Description of the error that does not
+ * need to be shown to the user, usually the exception that was caught.
*/
ns.error = function(message, cause) {
var log = Logging.getLogger();
@@ -119,13 +174,14 @@
};
/**
- * Function: notify
* Displays a message to the end user in a dialog box.
*
- * Parameters:
- * message - The message to display to the user.
- * title - Title for the dialog box (optional). If not specified, the
- * title will be "Notice".
+ * @method notify
+ * @static
+ *
+ * @param {string} The message to display to the user.
+ *
+ * @param [title="Notice"] {string} Title for the dialog box.
*/
ns.notify = function(message, title) {
if ( window.YAHOO && window.YAHOO.widget &&
@@ -148,23 +204,27 @@
};
/**
- * Function: ask
* Asks the end user a yes or no question in a dialog box.
*
- * Parameters:
- * spec.header - Header text to be displayed in the dialog box. If not
- * specified, "Notice" will be used.
- * spec.message - Message text to be displayed in the dialog box. If
- * not specified, "Are you sure?" will be used.
- * spec.okButton - Text to be used in the no button. If not specified,
- * "OK" will be used.
- * spec.cancelButton - Text to be used in the yes button. If not specified,
- * "Cancel" will be used.
- * spec.onOk - Function to execute when the OK button is pressed.
- * If not specified, the dialog box simply closes.
- * spec.onCancel - Function to execute when the Cancel button is
- * pressed. If not specified, the dialog box simply
- * closes.
+ * @method ask
+ * @static
+ *
+ * @param [spec.header="Notice"] {string} Header text to be displayed in
+ * the dialog box.
+ *
+ * @param [spec.message="Are you sure?"] {string} Message text to be
+ * displayed in the dialog box.
+ *
+ * @param [spec.okButton="OK"] {string} Text to be used in the no button.
+ *
+ * @param [spec.cancelButton="Cancel"] {string} Text to be used in the yes
+ * button.
+ *
+ * @param [spec.onOk] {function} Function to execute when the OK button is
+ * pressed. If not specified, the dialog box simply closes.
+ *
+ * @parma [spec.onCancel] {function} Function to execute when the Cancel
+ * button is pressed. If not specified, the dialog box simply closes.
*/
ns.ask = function(spec) {
var dialog = new YAHOO.widget.SimpleDialog("dialog", {
@@ -214,15 +274,15 @@
}
/**
- * Function: size
- * Gets the number of properties in an object. This only includes
- * properties where hasOwnProperty returns true.
+ * Gets the number of properties in an object.
*
- * Parameters:
- * size - Object to count the number of properties
+ * @method size
+ * @static
*
- * Returns:
- * Number of properties
+ * @param size {object} Object to count the number of properties
+ *
+ * @return {integer} The number of properites where hasOwnPropery returns
+ * true.
*/
ns.size = function(object) {
var size = 0;
@@ -235,24 +295,15 @@
};
/**
- * Function: getObjectByPath
* Returns the object specified by a string path.
*
- * Parameters:
- * path - The path to the object as a string, delimited by periods.
- *
- * Returns:
- * The object
+ * @method getObjectByPath
+ * @static
*
- * Throws:
- * An exception if any object leading up to the leaf object is undefined.
+ * @param path {string} The path to the object, delimited by periods.
*
- * Example:
- * (begin code)
- * > Foo.Bar.baz = "hello";
- * > Worldview.getObjectByPath("Foo.Bar.baz");
- * "hello"
- * (end code)
+ * @return {object} The object or undefined. Throws an exception
+ * if any object leading up the leaf object is undefined.
*/
ns.getObjectByPath = function(path) {
var nodes = path.split(".");
@@ -267,15 +318,15 @@
};
/**
- * Function: queryStringToObject
* Converts a query string into an object.
*
- * Parameters:
- * queryString - The query string to convert
+ * @method queryStringToObject
+ * @static
+ *
+ * @param queryString {string} The query string to convert
*
- * Return:
- * An object where each property is one of the parameters found in the
- * query string.
+ * @return An object where each property is one of the parameters found in
+ * the query string.
*/
ns.queryStringToObject = function(queryString) {
if ( !queryString ) {
@@ -294,15 +345,16 @@
};
/**
- * Function: extractFromQuery
* Extracts the value of the given key from the querystring.
*
- * Parameters:
- * key - Item to be extracted
- * qa - Query string to extract from
+ * @method extractFromQuery
+ * @static
*
- * Returns:
- * The value associated with the given key in the querystring
+ * @param key {string} Item to be extracted
+ * @param qs {string} Query string to extract from
+ *
+ * @return {object} The value associated with the given key in the
+ * querystring, or an empty string if not found.
*/
ns.extractFromQuery = function(key, qs) {
var regex = new RegExp("[\\?&#]*"+key+"=([^&#]*)");
@@ -314,16 +366,16 @@
};
/**
- * Function: ajaxError
* Wrapper for handling AJAX errors when the XHR and status code is not
* necessary.
*
- * Parameters:
- * handler - Callback to be invoked on error that accepts one argument,
- * the error that was thrown.
+ * @method ajaxError
+ * @static
+ *
+ * @param hanadler {function} Callback to be invoked on error that accepts
+ * one argument, the error that was thrown.
*
- * Returns:
- * The function wrapper.
+ * @return {function} The function wrapper.
*/
ns.ajaxError = function(handler) {
return function(jqXHR, textStatus, errorThrown) {
@@ -331,21 +383,19 @@
};
};
- /**
- * Function: clamp
- *
+ /**
* Ensures a value is between an minimum and a maximum.
*
- * Parameters:
- * min - Lower bound of the clamp range
- * max - Upper bound of the clamp range
+ * @method clamp
+ * @static
*
- * Returns:
- * min if the value is below min, max if the value is above max,
- * othewise returns value
+ * @param min {number} Lower bound of the clamp range
+ * @param max {number} Upper bound of the clamp range
+ * @param value {number} The value to check.
*
- * Throws:
- * If min is greater than max
+ * @return {number} min if the value is below min, max if the value is
+ * above max, othewise returns value. Throws an exception if min is
+ * greater than max.
*/
ns.clamp = function(min, max, value) {
if ( min > max ) {
@@ -356,23 +406,36 @@
return value;
}
- /**
- * Function: clampIndex
- *
+ /**
* Clamps a value to a valid array index.
*
- * Parameters:
- * array - Clamp the index to this array
- * index - Index value
+ * @method clampIndex
+ * @static
*
- * Returns:
- * Zero if the index is below zero, array.length - 1 if the index is greater
- * than the maximum array index, otherwise returns index.
+ * @param array {Array} Clamp the index to this array
+ * @param index {integer} Index value
+ *
+ * @return {number} Zero if the index is below zero, array.length - 1 if
+ * the index is greater than the maximum array index, otherwise returns
+ * index.
*/
ns.clampIndex = function(array, index) {
return ns.clamp(0, array.length - 1, index);
};
+ /**
+ * Determines if the values of an array are equal to those of another
+ * array. This was copied from Stack Overflow.
+ *
+ * @method arrayEquals
+ * @static
+ *
+ * @param {Object} arr1 Array to compare
+ * @param {Object} arr2 Array to compare
+ *
+ * @return {boolean} true if arr1 and arr2 have the same length, and all
+ * values in arr1 are equal to those in arr2, otherwise returns false.
+ */
ns.arrayEquals = function(arr1, arr2) {
return $(arr1).not(arr2).length == 0 && $(arr2).not(arr1).length == 0;
};
diff --git a/src/js/Worldview/DataDownload/Model.js b/src/js/Worldview/DataDownload/Model.js
index 321bb4fff..779777b41 100644
--- a/src/js/Worldview/DataDownload/Model.js
+++ b/src/js/Worldview/DataDownload/Model.js
@@ -14,7 +14,7 @@ Worldview.namespace("DataDownload");
/**
* Data download model.
*
- * @namespace DataDownload
+ * @module Worldview.DataDownload
* @class Model
* @constructor
* @param config config
@@ -42,8 +42,7 @@ Worldview.DataDownload.Model = function(config) {
/**
* Indicates if data download mode is active.
*
- * @property active
- * @type boolean
+ * @attribute active {boolean}
* @default false
* @readOnly
*/
@@ -52,7 +51,8 @@ Worldview.DataDownload.Model = function(config) {
/**
* Handler for events fired by this class.
*
- * @property events
+ * @attribute events {Events}
+ * @readOnly
* @type Events
*/
self.events = Worldview.Events();
diff --git a/src/js/Worldview/DataDownload/module.js b/src/js/Worldview/DataDownload/module.js
new file mode 100644
index 000000000..5c36289a1
--- /dev/null
+++ b/src/js/Worldview/DataDownload/module.js
@@ -0,0 +1,17 @@
+/*
+ * NASA Worldview
+ *
+ * This code was originally developed at NASA/Goddard Space Flight Center for
+ * the Earth Science Data and Information System (ESDIS) project.
+ *
+ * Copyright (C) 2013 United States Government as represented by the
+ * Administrator of the National Aeronautics and Space Administration.
+ * All Rights Reserved.
+ */
+
+/**
+ * Browsing and selecting data granules for download.
+ *
+ * @module Worldview.DataDownload
+ * @main Worldview.DataDownload
+ */
\ No newline at end of file
diff --git a/src/js/Worldview/Events.js b/src/js/Worldview/Events.js
index 465429b03..f9e440a9b 100644
--- a/src/js/Worldview/Events.js
+++ b/src/js/Worldview/Events.js
@@ -25,6 +25,7 @@
*
* events.fire("answerReceived", 42);
*
+ * @module Worldview
* @class Events
*/
Worldview.Events = function() {
diff --git a/src/js/Worldview/Widget/DataDownload.js b/src/js/Worldview/Widget/DataDownload.js
index 8e227c9b1..76c9e8c64 100644
--- a/src/js/Worldview/Widget/DataDownload.js
+++ b/src/js/Worldview/Widget/DataDownload.js
@@ -17,9 +17,12 @@ Worldview.namespace("Widget");
* @module Worldview.Widget
* @class DataDownload
* @constructor
+ *
* @param model {Worldview.DataDownload.Model} model for which this widget
* will be a view for.
+ *
* @param config Worldview config
+ *
* @param spec.selector {string} jQuery selector for where the mode activation
* button should be rendered.
*/
diff --git a/src/js/Worldview/DataDownload.js b/src/js/Worldview/module.js
similarity index 78%
rename from src/js/Worldview/DataDownload.js
rename to src/js/Worldview/module.js
index c7bf2a649..cdeca0916 100644
--- a/src/js/Worldview/DataDownload.js
+++ b/src/js/Worldview/module.js
@@ -10,7 +10,8 @@
*/
/**
- * Browse and select available granules for download.
+ * Worldview reference client for GIBS.
*
- * @namespace Worldview.DataDownload
+ * @module Worldview
+ * @main Worldview
*/
\ No newline at end of file
diff --git a/src/js/datePicker.js b/src/js/datePicker.js
index 6a44e24e9..0302f745c 100644
--- a/src/js/datePicker.js
+++ b/src/js/datePicker.js
@@ -4,8 +4,8 @@ SOTE.namespace("SOTE.widget.DatePicker");
/**
* A date selection object for a configurable period of days, containing thumnails of a sample data
* product image for each day
- *
- * @moudle SOTE.widget
+ *
+ * @module SOTE.widget
* @class DatePicker
* @constructor
* @this {dateSpan}
diff --git a/src/js/mobileDateSpan.js b/src/js/mobileDateSpan.js
index 64a131328..5be08fe1d 100644
--- a/src/js/mobileDateSpan.js
+++ b/src/js/mobileDateSpan.js
@@ -4,7 +4,7 @@ SOTE.namespace("SOTE.widget.MobileMobileDateSpan");
/**
* A date selection object for a configurable period of days, containing thumnails of a sample data
* product image for each day
- *
+ *
* @module SOTE.widget
* @class MobileDateSpan
* @constructor
diff --git a/src/js/products.js b/src/js/products.js
index 905fc4fe9..46f212faf 100644
--- a/src/js/products.js
+++ b/src/js/products.js
@@ -6,7 +6,7 @@ SOTE.widget.Products.prototype = new SOTE.widget.Component;
* A selection device classifying radio buttons/checkboxes into categories that are displayed in Accordion form.
* Radio buttons allow single selection accross categories. Checkboxes allow multiple selections accross categories.
* Radio selections cannot span multiple categories.
- *
+ *
* @module SOTE.widget
* @class Products
* @constructor
diff --git a/src/js/rubberBand.js b/src/js/rubberBand.js
index a824b8c35..238fbd132 100644
--- a/src/js/rubberBand.js
+++ b/src/js/rubberBand.js
@@ -4,7 +4,7 @@ SOTE.namespace("SOTE.widget.RubberBand");
/**
* A "rubberband" tool class. Uses the JCrop library.
*
- * @module SOTE
+ * @module SOTE.widget
* @class RubberBand
* @constructor
* @this {RBand}
diff --git a/src/js/selector.js b/src/js/selector.js
index bf0a4f827..130d8b5e9 100644
--- a/src/js/selector.js
+++ b/src/js/selector.js
@@ -6,7 +6,7 @@ SOTE.widget.Selector.prototype = new SOTE.widget.Component;
* A selection device classifying radio buttons/checkboxes into categories that are displayed in Accordion form.
* Radio buttons allow single selection accross categories. Checkboxes allow multiple selections accross categories.
* Radio selections cannot span multiple categories.
- *
+ *
* @module SOTE.widget
* @class Selector
* @constructor
diff --git a/src/js/superview.js b/src/js/superview.js
index d3047a92b..78a9cf369 100644
--- a/src/js/superview.js
+++ b/src/js/superview.js
@@ -3,7 +3,7 @@ SOTE.widget.Superview.prototype = new SOTE.widget.Component;
/**
* A series of dateSpans each with the same min/max bounds, range, and start date. Allows
* visual selection of date and data product
- *
+ *
* @module SOTE.widget
* @class Superview
* @constructor
diff --git a/src/js/switch.js b/src/js/switch.js
index 4da5a42d8..403fa16aa 100644
--- a/src/js/switch.js
+++ b/src/js/switch.js
@@ -6,7 +6,7 @@ SOTE.widget.Switch.prototype = new SOTE.widget.Component;
* A selection device classifying radio buttons/checkboxes into categories that are displayed in Accordion form.
* Radio buttons allow single selection accross categories. Checkboxes allow multiple selections accross categories.
* Radio selections cannot span multiple categories.
- *
+ *
* @module SOTE.widget
* @class Switch
* @constructor