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

Function wrapTemplate

lib/test/angular/1.4.3/angular.js:8458–8469  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

8456
8457
8458 function wrapTemplate(type, template) {
8459 type = lowercase(type || 'html');
8460 switch (type) {
8461 case 'svg':
8462 case 'math':
8463 var wrapper = document.createElement('div');
8464 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
8465 return wrapper.childNodes[0].childNodes;
8466 default:
8467 return template;
8468 }
8469 }
8470
8471
8472 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