mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +00:00
[Windowing] Comments
Added comments to the perform function WTD-16.
This commit is contained in:
@ -39,11 +39,13 @@ define(
|
|||||||
function NewWindowAction($window) {
|
function NewWindowAction($window) {
|
||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
* Open the object in a new window (currently a stub)
|
* Open the object in a new window
|
||||||
*/
|
*/
|
||||||
perform: function () {
|
perform: function () {
|
||||||
|
// Places the current Url into a variable
|
||||||
|
// Then the Url is opened using $window
|
||||||
var currentUrl = $window.location.href;
|
var currentUrl = $window.location.href;
|
||||||
window.open(currentUrl);
|
$window.open(currentUrl);
|
||||||
},
|
},
|
||||||
|
|
||||||
getMetadata: function () {
|
getMetadata: function () {
|
||||||
|
Reference in New Issue
Block a user