@@ -1215,7 +1215,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1215
1215
1216
1216
var SIMPLE_ATTR_NAME = / ^ \w / ;
1217
1217
var specialAttrHolder = document . createElement ( 'div' ) ;
1218
- var Attributes = function ( element , attributesToCopy ) {
1218
+ function Attributes ( element , attributesToCopy ) {
1219
1219
if ( attributesToCopy ) {
1220
1220
var keys = Object . keys ( attributesToCopy ) ;
1221
1221
var i , l , key ;
@@ -1229,7 +1229,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1229
1229
}
1230
1230
1231
1231
this . $$element = element ;
1232
- } ;
1232
+ }
1233
1233
1234
1234
Attributes . prototype = {
1235
1235
/**
@@ -1731,8 +1731,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1731
1731
}
1732
1732
1733
1733
function createBoundTranscludeFn ( scope , transcludeFn , previousBoundTranscludeFn ) {
1734
-
1735
- var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
1734
+ function boundTranscludeFn ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
1736
1735
1737
1736
if ( ! transcludedScope ) {
1738
1737
transcludedScope = scope . $new ( false , containingScope ) ;
@@ -1744,7 +1743,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1744
1743
transcludeControllers : controllers ,
1745
1744
futureParentElement : futureParentElement
1746
1745
} ) ;
1747
- } ;
1746
+ }
1748
1747
1749
1748
// We need to attach the transclusion slots onto the `boundTranscludeFn`
1750
1749
// so that they are available inside the `controllersBoundTransclude` function
@@ -1909,7 +1908,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1909
1908
* @returns {Function }
1910
1909
*/
1911
1910
function groupElementsLinkFnWrapper ( linkFn , attrStart , attrEnd ) {
1912
- return function ( scope , element , attrs , controllers , transcludeFn ) {
1911
+ return function groupedElementsLink ( scope , element , attrs , controllers , transcludeFn ) {
1913
1912
element = groupScan ( element [ 0 ] , attrStart , attrEnd ) ;
1914
1913
return linkFn ( scope , element , attrs , controllers , transcludeFn ) ;
1915
1914
} ;
@@ -1932,7 +1931,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1932
1931
if ( eager ) {
1933
1932
return compile ( $compileNodes , transcludeFn , maxPriority , ignoreDirective , previousCompileContext ) ;
1934
1933
}
1935
- return function ( ) {
1934
+ return function lazyCompilation ( ) {
1936
1935
if ( ! compiled ) {
1937
1936
compiled = compile ( $compileNodes , transcludeFn , maxPriority , ignoreDirective , previousCompileContext ) ;
1938
1937
@@ -2998,7 +2997,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2998
2997
// only occurs for isolate scopes and new scopes with controllerAs.
2999
2998
function initializeDirectiveBindings ( scope , attrs , destination , bindings , directive ) {
3000
2999
var removeWatchCollection = [ ] ;
3001
- forEach ( bindings , function ( definition , scopeName ) {
3000
+ forEach ( bindings , function initializeBinding ( definition , scopeName ) {
3002
3001
var attrName = definition . attrName ,
3003
3002
optional = definition . optional ,
3004
3003
mode = definition . mode , // @, =, or &
@@ -3040,7 +3039,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
3040
3039
if ( parentGet . literal ) {
3041
3040
compare = equals ;
3042
3041
} else {
3043
- compare = function ( a , b ) { return a === b || ( a !== a && b !== b ) ; } ;
3042
+ compare = function simpleCompare ( a , b ) { return a === b || ( a !== a && b !== b ) ; } ;
3044
3043
}
3045
3044
parentSet = parentGet . assign || function ( ) {
3046
3045
// reset the change, or we will throw this exception on every $digest
0 commit comments