@@ -854,7 +854,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
854854 */
855855 var debugInfoEnabled = true ;
856856 this . debugInfoEnabled = function ( enabled ) {
857- if ( isDefined ( enabled ) ) {
857+ if ( isDefined ( enabled ) ) {
858858 debugInfoEnabled = enabled ;
859859 return this ;
860860 }
@@ -899,7 +899,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
899899 * @param {string } classVal The className value that will be added to the element
900900 */
901901 $addClass : function ( classVal ) {
902- if ( classVal && classVal . length > 0 ) {
902+ if ( classVal && classVal . length > 0 ) {
903903 $animate . addClass ( this . $$element , classVal ) ;
904904 }
905905 } ,
@@ -916,7 +916,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
916916 * @param {string } classVal The className value that will be removed from the element
917917 */
918918 $removeClass : function ( classVal ) {
919- if ( classVal && classVal . length > 0 ) {
919+ if ( classVal && classVal . length > 0 ) {
920920 $animate . removeClass ( this . $$element , classVal ) ;
921921 }
922922 } ,
@@ -969,7 +969,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
969969 if ( booleanKey ) {
970970 this . $$element . prop ( key , value ) ;
971971 attrName = booleanKey ;
972- } else if ( aliasedKey ) {
972+ } else if ( aliasedKey ) {
973973 this [ aliasedKey ] = value ;
974974 observer = aliasedKey ;
975975 }
@@ -1022,7 +1022,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
10221022 result += $$sanitizeUri ( trim ( lastTuple [ 0 ] ) , true ) ;
10231023
10241024 // and add the last descriptor if any
1025- if ( lastTuple . length === 2 ) {
1025+ if ( lastTuple . length === 2 ) {
10261026 result += ( " " + trim ( lastTuple [ 1 ] ) ) ;
10271027 }
10281028 this [ key ] = value = result ;
@@ -1089,7 +1089,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
10891089 function safeAddClass ( $element , className ) {
10901090 try {
10911091 $element . addClass ( className ) ;
1092- } catch ( e ) {
1092+ } catch ( e ) {
10931093 // ignore, since it means that we are trying to set class on
10941094 // SVG element, where class name is read-only.
10951095 }
@@ -1278,7 +1278,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
12781278 stableNodeList = nodeList ;
12791279 }
12801280
1281- for ( i = 0 , ii = linkFns . length ; i < ii ; ) {
1281+ for ( i = 0 , ii = linkFns . length ; i < ii ; ) {
12821282 node = stableNodeList [ linkFns [ i ++ ] ] ;
12831283 nodeLinkFn = linkFns [ i ++ ] ;
12841284 childLinkFn = linkFns [ i ++ ] ;
@@ -1346,7 +1346,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
13461346 match ,
13471347 className ;
13481348
1349- switch ( nodeType ) {
1349+ switch ( nodeType ) {
13501350 case NODE_TYPE_ELEMENT : /* Element */
13511351 // use the node name: <directive>
13521352 addDirective ( directives ,
@@ -1522,7 +1522,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
15221522 directiveValue ;
15231523
15241524 // 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 ++ ) {
15261526 directive = directives [ i ] ;
15271527 var attrStart = directive . $$start ;
15281528 var attrEnd = directive . $$end ;
@@ -1855,7 +1855,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
18551855 isolateBindingContext [ scopeName ] = value ;
18561856 } ) ;
18571857 attrs . $$observers [ attrName ] . $$scope = scope ;
1858- if ( attrs [ attrName ] ) {
1858+ if ( attrs [ attrName ] ) {
18591859 // If the attribute has been provided then we trigger an interpolation to ensure
18601860 // the value is there for use in the link fn
18611861 isolateBindingContext [ scopeName ] = $interpolate ( attrs [ attrName ] ) ( scope ) ;
@@ -1915,7 +1915,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
19151915 }
19161916
19171917 // PRELINKING
1918- for ( i = 0 , ii = preLinkFns . length ; i < ii ; i ++ ) {
1918+ for ( i = 0 , ii = preLinkFns . length ; i < ii ; i ++ ) {
19191919 linkFn = preLinkFns [ i ] ;
19201920 invokeLinkFn ( linkFn ,
19211921 linkFn . isolateScope ? isolateScope : scope ,
@@ -1936,7 +1936,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
19361936 childLinkFn && childLinkFn ( scopeToChild , linkNode . childNodes , undefined , boundTranscludeFn ) ;
19371937
19381938 // POSTLINKING
1939- for ( i = postLinkFns . length - 1 ; i >= 0 ; i -- ) {
1939+ for ( i = postLinkFns . length - 1 ; i >= 0 ; i -- ) {
19401940 linkFn = postLinkFns [ i ] ;
19411941 invokeLinkFn ( linkFn ,
19421942 linkFn . isolateScope ? isolateScope : scope ,
@@ -1996,7 +1996,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
19961996 if ( name === ignoreDirective ) return null ;
19971997 var match = null ;
19981998 if ( hasDirectives . hasOwnProperty ( name ) ) {
1999- for ( var directive , directives = $injector . get ( name + Suffix ) ,
1999+ for ( var directive , directives = $injector . get ( name + Suffix ) ,
20002000 i = 0 , ii = directives . length ; i < ii ; i ++ ) {
20012001 try {
20022002 directive = directives [ i ] ;
@@ -2008,7 +2008,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
20082008 tDirectives . push ( directive ) ;
20092009 match = directive ;
20102010 }
2011- } catch ( e ) { $exceptionHandler ( e ) ; }
2011+ } catch ( e ) { $exceptionHandler ( e ) ; }
20122012 }
20132013 }
20142014 return match ;
@@ -2025,7 +2025,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
20252025 */
20262026 function directiveIsMultiElement ( name ) {
20272027 if ( hasDirectives . hasOwnProperty ( name ) ) {
2028- for ( var directive , directives = $injector . get ( name + Suffix ) ,
2028+ for ( var directive , directives = $injector . get ( name + Suffix ) ,
20292029 i = 0 , ii = directives . length ; i < ii ; i ++ ) {
20302030 directive = directives [ i ] ;
20312031 if ( directive . multiElement ) {
@@ -2142,7 +2142,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
21422142 } ) ;
21432143 afterTemplateChildLinkFn = compileNodes ( $compileNode [ 0 ] . childNodes , childTranscludeFn ) ;
21442144
2145- while ( linkQueue . length ) {
2145+ while ( linkQueue . length ) {
21462146 var scope = linkQueue . shift ( ) ,
21472147 beforeTemplateLinkNode = linkQueue . shift ( ) ,
21482148 linkRootElement = linkQueue . shift ( ) ,
@@ -2241,7 +2241,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
22412241
22422242 function wrapTemplate ( type , template ) {
22432243 type = lowercase ( type || 'html' ) ;
2244- switch ( type ) {
2244+ switch ( type ) {
22452245 case 'svg' :
22462246 case 'math' :
22472247 var wrapper = document . createElement ( 'div' ) ;
@@ -2322,7 +2322,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
23222322 //skip animations when the first digest occurs (when
23232323 //both the new and the old values are the same) since
23242324 //the CSS classes are the non-interpolated values
2325- if ( name === 'class' && newValue != oldValue ) {
2325+ if ( name === 'class' && newValue != oldValue ) {
23262326 attr . $updateClass ( newValue , oldValue ) ;
23272327 } else {
23282328 attr . $set ( name , newValue ) ;
@@ -2352,7 +2352,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
23522352 i , ii ;
23532353
23542354 if ( $rootElement ) {
2355- for ( i = 0 , ii = $rootElement . length ; i < ii ; i ++ ) {
2355+ for ( i = 0 , ii = $rootElement . length ; i < ii ; i ++ ) {
23562356 if ( $rootElement [ i ] == firstElementToRemove ) {
23572357 $rootElement [ i ++ ] = newNode ;
23582358 for ( var j = i , j2 = j + removeCount - 1 ,
@@ -2427,7 +2427,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
24272427 function invokeLinkFn ( linkFn , scope , $element , attrs , controllers , transcludeFn ) {
24282428 try {
24292429 linkFn ( scope , $element , attrs , controllers , transcludeFn ) ;
2430- } catch ( e ) {
2430+ } catch ( e ) {
24312431 $exceptionHandler ( e , startingTag ( $element ) ) ;
24322432 }
24332433 }
@@ -2516,10 +2516,10 @@ function tokenDifference(str1, str2) {
25162516 tokens2 = str2 . split ( / \s + / ) ;
25172517
25182518 outer:
2519- for ( var i = 0 ; i < tokens1 . length ; i ++ ) {
2519+ for ( var i = 0 ; i < tokens1 . length ; i ++ ) {
25202520 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;
25232523 }
25242524 values += ( values . length > 0 ? ' ' : '' ) + token ;
25252525 }
0 commit comments