mirror of
https://github.com/nasa/openmct.git
synced 2025-04-11 21:31:06 +00:00
[Pages] Add comments
Add comments to controller for Page objects in preparation for integration, WTD-1158.
This commit is contained in:
parent
b2cd74e629
commit
2cba0234c5
@ -5,8 +5,15 @@ define(
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Controller for embedded web pages; serves simply as a
|
||||
* wrapper for `$sce` to mark pages as trusted.
|
||||
*/
|
||||
function EmbeddedPageController($sce) {
|
||||
return {
|
||||
/**
|
||||
* Alias of `$sce.trustAsResourceUrl`.
|
||||
*/
|
||||
trust: function (url) {
|
||||
return $sce.trustAsResourceUrl(url);
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ define(
|
||||
return v;
|
||||
});
|
||||
|
||||
controller = new EmbeddedPageController(mockSCE)
|
||||
controller = new EmbeddedPageController(mockSCE);
|
||||
});
|
||||
|
||||
it("allows URLs to be marked as trusted", function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user