mirror of
https://github.com/nasa/openmct.git
synced 2025-05-08 11:38:35 +00:00
[Windowing] Comments
Added comments to files. WTD-16.
This commit is contained in:
parent
61d9545414
commit
83cc0b65d5
@ -30,11 +30,15 @@ define(
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The navigation service maintains the application's current
|
* The url service handles calls for url paths
|
||||||
* navigation state, and allows listening for changes thereto.
|
* using domain objects.
|
||||||
* @constructor
|
|
||||||
*/
|
*/
|
||||||
function UrlService($location) {
|
function UrlService($location) {
|
||||||
|
// Returns the url for the mode wanted
|
||||||
|
// and the domainObject passed in. A path
|
||||||
|
// is returned. The view is defaulted to
|
||||||
|
// the current location's (current object's)
|
||||||
|
// view set.
|
||||||
function urlFor(mode, domainObject) {
|
function urlFor(mode, domainObject) {
|
||||||
var context = domainObject &&
|
var context = domainObject &&
|
||||||
domainObject.getCapability('context'),
|
domainObject.getCapability('context'),
|
||||||
@ -48,9 +52,14 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
/**
|
||||||
|
* Returns the Url path for a specific domain object
|
||||||
|
* @param {value} value of the browse or edit mode
|
||||||
|
* for the path
|
||||||
|
* @param {DomainObject} value of the domain object
|
||||||
|
* to get the path of
|
||||||
|
*/
|
||||||
urlFor: urlFor
|
urlFor: urlFor
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user