Fix jsdoc for closure syntax

This commit is contained in:
Ian Gulliver
2014-04-23 12:43:24 -07:00
parent 9a1d9a7388
commit 2ebe280216

View File

@@ -16,18 +16,20 @@ limitations under the License.
var cameraGrid = {}; var cameraGrid = {};
/** /**
* @callback getUrl * @name getUrl
* @function
* @param {String} sourceUrl Base URL of the camera * @param {String} sourceUrl Base URL of the camera
* @param {number} width Valid resolution width in pixels * @param {number} width Valid resolution width in pixels
* @param {number} height Valid resolution height in pixels * @param {number} height Valid resolution height in pixels
* @return String
*/ */
/** /**
* @constructor * @constructor
* @export * @export
* @param {Node} container DOM container object to hold UI * @param {Node} container DOM container object to hold UI
* @param {String[]} sourceUrls Array of Axis camera URLs * @param {Array.<String>} sourceUrls Array of Axis camera URLs
* @param {number[][]=} resolutions Array of [width,height] resolution tuples * @param {Array.<Array.<number>>=} resolutions Array of [width,height] resolution tuples
* @param {getUrl=} getUrl Callback to generate URL for a given camera * @param {getUrl=} getUrl Callback to generate URL for a given camera
*/ */
cameraGrid.CameraGrid = function(container, sourceUrls, resolutions, getUrl) { cameraGrid.CameraGrid = function(container, sourceUrls, resolutions, getUrl) {