@@ -215,7 +215,7 @@ function isArrayLike(obj) {
215
215
```js
216
216
var values = {name: 'misko', gender: 'male'};
217
217
var log = [];
218
- angular.forEach(values, function(value, key){
218
+ angular.forEach(values, function(value, key) {
219
219
this.push(key + ': ' + value);
220
220
}, log);
221
221
expect(log).toEqual(['name: misko', 'gender: male']);
@@ -229,7 +229,7 @@ function isArrayLike(obj) {
229
229
function forEach ( obj , iterator , context ) {
230
230
var key ;
231
231
if ( obj ) {
232
- if ( isFunction ( obj ) ) {
232
+ if ( isFunction ( obj ) ) {
233
233
for ( key in obj ) {
234
234
// Need to check if hasOwnProperty exists,
235
235
// as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function
@@ -342,9 +342,9 @@ function setHashKey(obj, h) {
342
342
*/
343
343
function extend ( dst ) {
344
344
var h = dst . $$hashKey ;
345
- forEach ( arguments , function ( obj ) {
345
+ forEach ( arguments , function ( obj ) {
346
346
if ( obj !== dst ) {
347
- forEach ( obj , function ( value , key ) {
347
+ forEach ( obj , function ( value , key ) {
348
348
dst [ key ] = value ;
349
349
} ) ;
350
350
}
@@ -493,7 +493,7 @@ function isNumber(value){return typeof value === 'number';}
493
493
* @param {* } value Reference to check.
494
494
* @returns {boolean } True if `value` is a `Date`.
495
495
*/
496
- function isDate ( value ) {
496
+ function isDate ( value ) {
497
497
return toString . call ( value ) === '[object Date]' ;
498
498
}
499
499
@@ -611,7 +611,7 @@ function isElement(node) {
611
611
* @param str 'key1,key2,...'
612
612
* @returns {object } in the form of {key1:true, key2:true, ...}
613
613
*/
614
- function makeMap ( str ) {
614
+ function makeMap ( str ) {
615
615
var obj = { } , items = str . split ( "," ) , i ;
616
616
for ( i = 0 ; i < items . length ; i ++ )
617
617
obj [ items [ i ] ] = true ;
@@ -658,7 +658,7 @@ function size(obj, ownPropsOnly) {
658
658
659
659
if ( isArray ( obj ) || isString ( obj ) ) {
660
660
return obj . length ;
661
- } else if ( isObject ( obj ) ) {
661
+ } else if ( isObject ( obj ) ) {
662
662
for ( key in obj )
663
663
if ( ! ownPropsOnly || obj . hasOwnProperty ( key ) )
664
664
count ++ ;
@@ -757,7 +757,7 @@ function isLeafNode (node) {
757
757
</file>
758
758
</example>
759
759
*/
760
- function copy ( source , destination ) {
760
+ function copy ( source , destination ) {
761
761
if ( isWindow ( source ) || isScope ( source ) ) {
762
762
throw ngMinErr ( 'cpws' ,
763
763
"Can't copy! Making copies of Window or Scope instances is not supported." ) ;
@@ -786,7 +786,7 @@ function copy(source, destination){
786
786
}
787
787
} else {
788
788
var h = destination . $$hashKey ;
789
- forEach ( destination , function ( value , key ) {
789
+ forEach ( destination , function ( value , key ) {
790
790
delete destination [ key ] ;
791
791
} ) ;
792
792
for ( var key in source ) {
@@ -1060,7 +1060,7 @@ function tryDecodeURIComponent(value) {
1060
1060
*/
1061
1061
function parseKeyValue ( /**string*/ keyValue ) {
1062
1062
var obj = { } , key_value , key ;
1063
- forEach ( ( keyValue || "" ) . split ( '&' ) , function ( keyValue ) {
1063
+ forEach ( ( keyValue || "" ) . split ( '&' ) , function ( keyValue ) {
1064
1064
if ( keyValue ) {
1065
1065
key_value = keyValue . split ( '=' ) ;
1066
1066
key = tryDecodeURIComponent ( key_value [ 0 ] ) ;
@@ -1422,7 +1422,7 @@ function bootstrap(element, modules, config) {
1422
1422
}
1423
1423
1424
1424
var SNAKE_CASE_REGEXP = / [ A - Z ] / g;
1425
- function snake_case ( name , separator ) {
1425
+ function snake_case ( name , separator ) {
1426
1426
separator = separator || '_' ;
1427
1427
return name . replace ( SNAKE_CASE_REGEXP , function ( letter , pos ) {
1428
1428
return ( pos ? separator : '' ) + letter . toLowerCase ( ) ;
0 commit comments