[Code Style] Use prototypes in Web Page bundle

WTD-1482
This commit is contained in:
Victor Woeltjen 2015-08-12 14:32:05 -07:00
parent 3492cd3942
commit 175490e1f7

View File

@ -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;
}