mirror of
https://github.com/nasa/openmct.git
synced 2025-05-03 17:22:56 +00:00
[Code Style] Use prototypes in Web Page bundle
WTD-1482
This commit is contained in:
parent
3492cd3942
commit
175490e1f7
@ -38,16 +38,18 @@ define(
|
|||||||
* @memberof platform/features/pages
|
* @memberof platform/features/pages
|
||||||
*/
|
*/
|
||||||
function EmbeddedPageController($sce) {
|
function EmbeddedPageController($sce) {
|
||||||
return {
|
this.$sce = $sce;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alias of `$sce.trustAsResourceUrl`.
|
* Alias of `$sce.trustAsResourceUrl`.
|
||||||
* @memberof platform/features/pages.EmbeddedPageController#
|
* @param {string} url the URL to trust
|
||||||
|
* @returns {string} the trusted URL
|
||||||
*/
|
*/
|
||||||
trust: function (url) {
|
EmbeddedPageController.prototype.trust = function (url) {
|
||||||
return $sce.trustAsResourceUrl(url);
|
return this.$sce.trustAsResourceUrl(url);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
return EmbeddedPageController;
|
return EmbeddedPageController;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user