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