@@ -1215,7 +1215,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
12151215
12161216 var SIMPLE_ATTR_NAME = / ^ \w / ;
12171217 var specialAttrHolder = document . createElement ( 'div' ) ;
1218- var Attributes = function ( element , attributesToCopy ) {
1218+ function Attributes ( element , attributesToCopy ) {
12191219 if ( attributesToCopy ) {
12201220 var keys = Object . keys ( attributesToCopy ) ;
12211221 var i , l , key ;
@@ -1229,7 +1229,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
12291229 }
12301230
12311231 this . $$element = element ;
1232- } ;
1232+ }
12331233
12341234 Attributes . prototype = {
12351235 /**
@@ -1718,8 +1718,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
17181718 }
17191719
17201720 function createBoundTranscludeFn ( scope , transcludeFn , previousBoundTranscludeFn ) {
1721-
1722- var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
1721+ function boundTranscludeFn ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
17231722
17241723 if ( ! transcludedScope ) {
17251724 transcludedScope = scope . $new ( false , containingScope ) ;
@@ -1731,7 +1730,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
17311730 transcludeControllers : controllers ,
17321731 futureParentElement : futureParentElement
17331732 } ) ;
1734- } ;
1733+ }
17351734
17361735 // We need to attach the transclusion slots onto the `boundTranscludeFn`
17371736 // so that they are available inside the `controllersBoundTransclude` function
@@ -1896,7 +1895,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
18961895 * @returns {Function }
18971896 */
18981897 function groupElementsLinkFnWrapper ( linkFn , attrStart , attrEnd ) {
1899- return function ( scope , element , attrs , controllers , transcludeFn ) {
1898+ return function groupedElementsLink ( scope , element , attrs , controllers , transcludeFn ) {
19001899 element = groupScan ( element [ 0 ] , attrStart , attrEnd ) ;
19011900 return linkFn ( scope , element , attrs , controllers , transcludeFn ) ;
19021901 } ;
@@ -1919,7 +1918,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
19191918 if ( eager ) {
19201919 return compile ( $compileNodes , transcludeFn , maxPriority , ignoreDirective , previousCompileContext ) ;
19211920 }
1922- return function ( ) {
1921+ return function lazyCompilation ( ) {
19231922 if ( ! compiled ) {
19241923 compiled = compile ( $compileNodes , transcludeFn , maxPriority , ignoreDirective , previousCompileContext ) ;
19251924
@@ -2985,7 +2984,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
29852984 // only occurs for isolate scopes and new scopes with controllerAs.
29862985 function initializeDirectiveBindings ( scope , attrs , destination , bindings , directive ) {
29872986 var removeWatchCollection = [ ] ;
2988- forEach ( bindings , function ( definition , scopeName ) {
2987+ forEach ( bindings , function initializeBinding ( definition , scopeName ) {
29892988 var attrName = definition . attrName ,
29902989 optional = definition . optional ,
29912990 mode = definition . mode , // @, =, or &
@@ -3027,7 +3026,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
30273026 if ( parentGet . literal ) {
30283027 compare = equals ;
30293028 } else {
3030- compare = function ( a , b ) { return a === b || ( a !== a && b !== b ) ; } ;
3029+ compare = function simpleCompare ( a , b ) { return a === b || ( a !== a && b !== b ) ; } ;
30313030 }
30323031 parentSet = parentGet . assign || function ( ) {
30333032 // reset the change, or we will throw this exception on every $digest
0 commit comments