[Windowing] Comment/Formatting

Reformatted code and added comments
to the unit test. Also refined the
NewTabActionSpec unit test to be
clearer. WTD 16.
This commit is contained in:
Shivam Dave
2015-06-24 12:50:21 -07:00
parent 13eef59e4f
commit 6863af9cd9
4 changed files with 52 additions and 24 deletions

View File

@@ -47,8 +47,14 @@ define(
return domainObject.getId();
}),
viewPath = "?view=" + $location.search().view,
// Parses the path together. Starts with the
// default index.html file, then the mode passed
// into the service, followed by ids in the url
// joined by '/', and lastly the view path from
// the current location
path = "index.html#/" + mode + "/" +
ids.slice(1).join("/") + viewPath;
return path;
}

View File

@@ -32,9 +32,7 @@ define(
DEFAULT_PATH = "/mine";
/**
* The new tab action allows a domain object to be opened
* into a new browser tab. (Currently this is a stub, present
* to allow the control to appear in the appropriate location in
* the user interface.)
* into a new browser tab.
* @constructor
*/
function NewTabAction(urlService, $window, context) {