MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / generateHolderType

Function generateHolderType

code/songhop/www/lib/angular/angular.js:15056–15072  ·  view source on GitHub ↗
(Base)

Source from the content-addressed store, hash-verified

15054 }
15055
15056 function generateHolderType(Base) {
15057 var holderType = function TrustedValueHolderType(trustedValue) {
15058 this.$$unwrapTrustedValue = function() {
15059 return trustedValue;
15060 };
15061 };
15062 if (Base) {
15063 holderType.prototype = new Base();
15064 }
15065 holderType.prototype.valueOf = function sceValueOf() {
15066 return this.$$unwrapTrustedValue();
15067 };
15068 holderType.prototype.toString = function sceToString() {
15069 return this.$$unwrapTrustedValue().toString();
15070 };
15071 return holderType;
15072 }
15073
15074 var trustedValueHolderBase = generateHolderType(),
15075 byType = {};

Callers 1

$SceDelegateProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected