Created
September 26, 2014 13:50
-
-
Save g00fy-/1ec2c2769420e4e80738 to your computer and use it in GitHub Desktop.
Perf - compile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(directive.templateUrl){ | |
var tmplUrl = (isFunction(directive.templateUrl)) | |
? directive.templateUrl($compileNode, templateAttrs) | |
: directive.templateUrl | |
var template = $templateCache.get(tmplUrl); | |
if(template){ | |
directive = extend({},{templateUrl:null,template:template}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
paste before
if (directive.template) {