MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / wrapTemplate

Function wrapTemplate

lib/test/angular/1.5.0/angular.js:9308–9319  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

9306
9307
9308 function wrapTemplate(type, template) {
9309 type = lowercase(type || 'html');
9310 switch (type) {
9311 case 'svg':
9312 case 'math':
9313 var wrapper = document.createElement('div');
9314 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
9315 return wrapper.childNodes[0].childNodes;
9316 default:
9317 return template;
9318 }
9319 }
9320
9321
9322 function getTrustedContext(node, attrNormalizedName) {

Callers 3

compileFunction · 0.70
applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls 1

lowercaseFunction · 0.70

Tested by

no test coverage detected