@@ -991,7 +991,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
991
991
992
992
var SIMPLE_ATTR_NAME = / ^ \w / ;
993
993
var specialAttrHolder = document . createElement ( 'div' ) ;
994
- var Attributes = function ( element , attributesToCopy ) {
994
+ function Attributes ( element , attributesToCopy ) {
995
995
if ( attributesToCopy ) {
996
996
var keys = Object . keys ( attributesToCopy ) ;
997
997
var i , l , key ;
@@ -1005,7 +1005,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1005
1005
}
1006
1006
1007
1007
this . $$element = element ;
1008
- } ;
1008
+ }
1009
1009
1010
1010
Attributes . prototype = {
1011
1011
/**
@@ -1492,8 +1492,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1492
1492
}
1493
1493
1494
1494
function createBoundTranscludeFn ( scope , transcludeFn , previousBoundTranscludeFn ) {
1495
-
1496
- var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
1495
+ function boundTranscludeFn ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
1497
1496
1498
1497
if ( ! transcludedScope ) {
1499
1498
transcludedScope = scope . $new ( false , containingScope ) ;
@@ -1505,7 +1504,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1505
1504
transcludeControllers : controllers ,
1506
1505
futureParentElement : futureParentElement
1507
1506
} ) ;
1508
- } ;
1507
+ }
1509
1508
1510
1509
// We need to attach the transclusion slots onto the `boundTranscludeFn`
1511
1510
// so that they are available inside the `controllersBoundTransclude` function
@@ -1666,7 +1665,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1666
1665
* @returns {Function }
1667
1666
*/
1668
1667
function groupElementsLinkFnWrapper ( linkFn , attrStart , attrEnd ) {
1669
- return function ( scope , element , attrs , controllers , transcludeFn ) {
1668
+ return function groupedElementsLink ( scope , element , attrs , controllers , transcludeFn ) {
1670
1669
element = groupScan ( element [ 0 ] , attrStart , attrEnd ) ;
1671
1670
return linkFn ( scope , element , attrs , controllers , transcludeFn ) ;
1672
1671
} ;
@@ -1690,7 +1689,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1690
1689
1691
1690
var compiled ;
1692
1691
1693
- return function ( ) {
1692
+ return function lazyCompilation ( ) {
1694
1693
if ( ! compiled ) {
1695
1694
compiled = compile ( $compileNodes , transcludeFn , maxPriority , ignoreDirective , previousCompileContext ) ;
1696
1695
@@ -2712,7 +2711,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2712
2711
// only occurs for isolate scopes and new scopes with controllerAs.
2713
2712
function initializeDirectiveBindings ( scope , attrs , destination , bindings , directive ) {
2714
2713
var removeWatchCollection = [ ] ;
2715
- forEach ( bindings , function ( definition , scopeName ) {
2714
+ forEach ( bindings , function initializeBinding ( definition , scopeName ) {
2716
2715
var attrName = definition . attrName ,
2717
2716
optional = definition . optional ,
2718
2717
mode = definition . mode , // @, =, or &
@@ -2749,7 +2748,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2749
2748
if ( parentGet . literal ) {
2750
2749
compare = equals ;
2751
2750
} else {
2752
- compare = function ( a , b ) { return a === b || ( a !== a && b !== b ) ; } ;
2751
+ compare = function simpleCompare ( a , b ) { return a === b || ( a !== a && b !== b ) ; } ;
2753
2752
}
2754
2753
parentSet = parentGet . assign || function ( ) {
2755
2754
// reset the change, or we will throw this exception on every $digest
0 commit comments