@@ -854,7 +854,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
854
854
*/
855
855
var debugInfoEnabled = true ;
856
856
this . debugInfoEnabled = function ( enabled ) {
857
- if ( isDefined ( enabled ) ) {
857
+ if ( isDefined ( enabled ) ) {
858
858
debugInfoEnabled = enabled ;
859
859
return this ;
860
860
}
@@ -899,7 +899,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
899
899
* @param {string } classVal The className value that will be added to the element
900
900
*/
901
901
$addClass : function ( classVal ) {
902
- if ( classVal && classVal . length > 0 ) {
902
+ if ( classVal && classVal . length > 0 ) {
903
903
$animate . addClass ( this . $$element , classVal ) ;
904
904
}
905
905
} ,
@@ -916,7 +916,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
916
916
* @param {string } classVal The className value that will be removed from the element
917
917
*/
918
918
$removeClass : function ( classVal ) {
919
- if ( classVal && classVal . length > 0 ) {
919
+ if ( classVal && classVal . length > 0 ) {
920
920
$animate . removeClass ( this . $$element , classVal ) ;
921
921
}
922
922
} ,
@@ -969,7 +969,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
969
969
if ( booleanKey ) {
970
970
this . $$element . prop ( key , value ) ;
971
971
attrName = booleanKey ;
972
- } else if ( aliasedKey ) {
972
+ } else if ( aliasedKey ) {
973
973
this [ aliasedKey ] = value ;
974
974
observer = aliasedKey ;
975
975
}
@@ -1022,7 +1022,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1022
1022
result += $$sanitizeUri ( trim ( lastTuple [ 0 ] ) , true ) ;
1023
1023
1024
1024
// and add the last descriptor if any
1025
- if ( lastTuple . length === 2 ) {
1025
+ if ( lastTuple . length === 2 ) {
1026
1026
result += ( " " + trim ( lastTuple [ 1 ] ) ) ;
1027
1027
}
1028
1028
this [ key ] = value = result ;
@@ -1089,7 +1089,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1089
1089
function safeAddClass ( $element , className ) {
1090
1090
try {
1091
1091
$element . addClass ( className ) ;
1092
- } catch ( e ) {
1092
+ } catch ( e ) {
1093
1093
// ignore, since it means that we are trying to set class on
1094
1094
// SVG element, where class name is read-only.
1095
1095
}
@@ -1278,7 +1278,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1278
1278
stableNodeList = nodeList ;
1279
1279
}
1280
1280
1281
- for ( i = 0 , ii = linkFns . length ; i < ii ; ) {
1281
+ for ( i = 0 , ii = linkFns . length ; i < ii ; ) {
1282
1282
node = stableNodeList [ linkFns [ i ++ ] ] ;
1283
1283
nodeLinkFn = linkFns [ i ++ ] ;
1284
1284
childLinkFn = linkFns [ i ++ ] ;
@@ -1346,7 +1346,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1346
1346
match ,
1347
1347
className ;
1348
1348
1349
- switch ( nodeType ) {
1349
+ switch ( nodeType ) {
1350
1350
case NODE_TYPE_ELEMENT : /* Element */
1351
1351
// use the node name: <directive>
1352
1352
addDirective ( directives ,
@@ -1522,7 +1522,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1522
1522
directiveValue ;
1523
1523
1524
1524
// executes all directives on the current element
1525
- for ( var i = 0 , ii = directives . length ; i < ii ; i ++ ) {
1525
+ for ( var i = 0 , ii = directives . length ; i < ii ; i ++ ) {
1526
1526
directive = directives [ i ] ;
1527
1527
var attrStart = directive . $$start ;
1528
1528
var attrEnd = directive . $$end ;
@@ -1855,7 +1855,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1855
1855
isolateBindingContext [ scopeName ] = value ;
1856
1856
} ) ;
1857
1857
attrs . $$observers [ attrName ] . $$scope = scope ;
1858
- if ( attrs [ attrName ] ) {
1858
+ if ( attrs [ attrName ] ) {
1859
1859
// If the attribute has been provided then we trigger an interpolation to ensure
1860
1860
// the value is there for use in the link fn
1861
1861
isolateBindingContext [ scopeName ] = $interpolate ( attrs [ attrName ] ) ( scope ) ;
@@ -1915,7 +1915,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1915
1915
}
1916
1916
1917
1917
// PRELINKING
1918
- for ( i = 0 , ii = preLinkFns . length ; i < ii ; i ++ ) {
1918
+ for ( i = 0 , ii = preLinkFns . length ; i < ii ; i ++ ) {
1919
1919
linkFn = preLinkFns [ i ] ;
1920
1920
invokeLinkFn ( linkFn ,
1921
1921
linkFn . isolateScope ? isolateScope : scope ,
@@ -1936,7 +1936,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1936
1936
childLinkFn && childLinkFn ( scopeToChild , linkNode . childNodes , undefined , boundTranscludeFn ) ;
1937
1937
1938
1938
// POSTLINKING
1939
- for ( i = postLinkFns . length - 1 ; i >= 0 ; i -- ) {
1939
+ for ( i = postLinkFns . length - 1 ; i >= 0 ; i -- ) {
1940
1940
linkFn = postLinkFns [ i ] ;
1941
1941
invokeLinkFn ( linkFn ,
1942
1942
linkFn . isolateScope ? isolateScope : scope ,
@@ -1996,7 +1996,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1996
1996
if ( name === ignoreDirective ) return null ;
1997
1997
var match = null ;
1998
1998
if ( hasDirectives . hasOwnProperty ( name ) ) {
1999
- for ( var directive , directives = $injector . get ( name + Suffix ) ,
1999
+ for ( var directive , directives = $injector . get ( name + Suffix ) ,
2000
2000
i = 0 , ii = directives . length ; i < ii ; i ++ ) {
2001
2001
try {
2002
2002
directive = directives [ i ] ;
@@ -2008,7 +2008,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2008
2008
tDirectives . push ( directive ) ;
2009
2009
match = directive ;
2010
2010
}
2011
- } catch ( e ) { $exceptionHandler ( e ) ; }
2011
+ } catch ( e ) { $exceptionHandler ( e ) ; }
2012
2012
}
2013
2013
}
2014
2014
return match ;
@@ -2025,7 +2025,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2025
2025
*/
2026
2026
function directiveIsMultiElement ( name ) {
2027
2027
if ( hasDirectives . hasOwnProperty ( name ) ) {
2028
- for ( var directive , directives = $injector . get ( name + Suffix ) ,
2028
+ for ( var directive , directives = $injector . get ( name + Suffix ) ,
2029
2029
i = 0 , ii = directives . length ; i < ii ; i ++ ) {
2030
2030
directive = directives [ i ] ;
2031
2031
if ( directive . multiElement ) {
@@ -2142,7 +2142,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2142
2142
} ) ;
2143
2143
afterTemplateChildLinkFn = compileNodes ( $compileNode [ 0 ] . childNodes , childTranscludeFn ) ;
2144
2144
2145
- while ( linkQueue . length ) {
2145
+ while ( linkQueue . length ) {
2146
2146
var scope = linkQueue . shift ( ) ,
2147
2147
beforeTemplateLinkNode = linkQueue . shift ( ) ,
2148
2148
linkRootElement = linkQueue . shift ( ) ,
@@ -2241,7 +2241,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2241
2241
2242
2242
function wrapTemplate ( type , template ) {
2243
2243
type = lowercase ( type || 'html' ) ;
2244
- switch ( type ) {
2244
+ switch ( type ) {
2245
2245
case 'svg' :
2246
2246
case 'math' :
2247
2247
var wrapper = document . createElement ( 'div' ) ;
@@ -2322,7 +2322,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2322
2322
//skip animations when the first digest occurs (when
2323
2323
//both the new and the old values are the same) since
2324
2324
//the CSS classes are the non-interpolated values
2325
- if ( name === 'class' && newValue != oldValue ) {
2325
+ if ( name === 'class' && newValue != oldValue ) {
2326
2326
attr . $updateClass ( newValue , oldValue ) ;
2327
2327
} else {
2328
2328
attr . $set ( name , newValue ) ;
@@ -2352,7 +2352,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2352
2352
i , ii ;
2353
2353
2354
2354
if ( $rootElement ) {
2355
- for ( i = 0 , ii = $rootElement . length ; i < ii ; i ++ ) {
2355
+ for ( i = 0 , ii = $rootElement . length ; i < ii ; i ++ ) {
2356
2356
if ( $rootElement [ i ] == firstElementToRemove ) {
2357
2357
$rootElement [ i ++ ] = newNode ;
2358
2358
for ( var j = i , j2 = j + removeCount - 1 ,
@@ -2427,7 +2427,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2427
2427
function invokeLinkFn ( linkFn , scope , $element , attrs , controllers , transcludeFn ) {
2428
2428
try {
2429
2429
linkFn ( scope , $element , attrs , controllers , transcludeFn ) ;
2430
- } catch ( e ) {
2430
+ } catch ( e ) {
2431
2431
$exceptionHandler ( e , startingTag ( $element ) ) ;
2432
2432
}
2433
2433
}
@@ -2516,10 +2516,10 @@ function tokenDifference(str1, str2) {
2516
2516
tokens2 = str2 . split ( / \s + / ) ;
2517
2517
2518
2518
outer:
2519
- for ( var i = 0 ; i < tokens1 . length ; i ++ ) {
2519
+ for ( var i = 0 ; i < tokens1 . length ; i ++ ) {
2520
2520
var token = tokens1 [ i ] ;
2521
- for ( var j = 0 ; j < tokens2 . length ; j ++ ) {
2522
- if ( token == tokens2 [ j ] ) continue outer;
2521
+ for ( var j = 0 ; j < tokens2 . length ; j ++ ) {
2522
+ if ( token == tokens2 [ j ] ) continue outer;
2523
2523
}
2524
2524
values += ( values . length > 0 ? ' ' : '' ) + token ;
2525
2525
}
0 commit comments