@@ -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
/**
@@ -1718,8 +1718,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1718
1718
}
1719
1719
1720
1720
function createBoundTranscludeFn ( scope , transcludeFn , previousBoundTranscludeFn ) {
1721
-
1722
- var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
1721
+ function boundTranscludeFn ( transcludedScope , cloneFn , controllers , futureParentElement , containingScope ) {
1723
1722
1724
1723
if ( ! transcludedScope ) {
1725
1724
transcludedScope = scope . $new ( false , containingScope ) ;
@@ -1731,7 +1730,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1731
1730
transcludeControllers : controllers ,
1732
1731
futureParentElement : futureParentElement
1733
1732
} ) ;
1734
- } ;
1733
+ }
1735
1734
1736
1735
// We need to attach the transclusion slots onto the `boundTranscludeFn`
1737
1736
// so that they are available inside the `controllersBoundTransclude` function
@@ -1896,7 +1895,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1896
1895
* @returns {Function }
1897
1896
*/
1898
1897
function groupElementsLinkFnWrapper ( linkFn , attrStart , attrEnd ) {
1899
- return function ( scope , element , attrs , controllers , transcludeFn ) {
1898
+ return function groupedElementsLink ( scope , element , attrs , controllers , transcludeFn ) {
1900
1899
element = groupScan ( element [ 0 ] , attrStart , attrEnd ) ;
1901
1900
return linkFn ( scope , element , attrs , controllers , transcludeFn ) ;
1902
1901
} ;
@@ -1919,7 +1918,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1919
1918
if ( eager ) {
1920
1919
return compile ( $compileNodes , transcludeFn , maxPriority , ignoreDirective , previousCompileContext ) ;
1921
1920
}
1922
- return function ( ) {
1921
+ return function lazyCompilation ( ) {
1923
1922
if ( ! compiled ) {
1924
1923
compiled = compile ( $compileNodes , transcludeFn , maxPriority , ignoreDirective , previousCompileContext ) ;
1925
1924
@@ -2985,7 +2984,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2985
2984
// only occurs for isolate scopes and new scopes with controllerAs.
2986
2985
function initializeDirectiveBindings ( scope , attrs , destination , bindings , directive ) {
2987
2986
var removeWatchCollection = [ ] ;
2988
- forEach ( bindings , function ( definition , scopeName ) {
2987
+ forEach ( bindings , function initializeBinding ( definition , scopeName ) {
2989
2988
var attrName = definition . attrName ,
2990
2989
optional = definition . optional ,
2991
2990
mode = definition . mode , // @, =, or &
@@ -3027,7 +3026,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
3027
3026
if ( parentGet . literal ) {
3028
3027
compare = equals ;
3029
3028
} 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 ) ; } ;
3031
3030
}
3032
3031
parentSet = parentGet . assign || function ( ) {
3033
3032
// reset the change, or we will throw this exception on every $digest
0 commit comments