Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b0e985f

Browse files
jesselpalmerIgorMinar
authored andcommitted
style: added whitespace
spaces between the ')' and '{' make code a tad easier to read. Closes #7542
1 parent a0dbd95 commit b0e985f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Angular.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function isArrayLike(obj) {
215215
```js
216216
var values = {name: 'misko', gender: 'male'};
217217
var log = [];
218-
angular.forEach(values, function(value, key){
218+
angular.forEach(values, function(value, key) {
219219
this.push(key + ': ' + value);
220220
}, log);
221221
expect(log).toEqual(['name: misko', 'gender: male']);
@@ -229,7 +229,7 @@ function isArrayLike(obj) {
229229
function forEach(obj, iterator, context) {
230230
var key;
231231
if (obj) {
232-
if (isFunction(obj)){
232+
if (isFunction(obj)) {
233233
for (key in obj) {
234234
// Need to check if hasOwnProperty exists,
235235
// as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function
@@ -342,9 +342,9 @@ function setHashKey(obj, h) {
342342
*/
343343
function extend(dst) {
344344
var h = dst.$$hashKey;
345-
forEach(arguments, function(obj){
345+
forEach(arguments, function(obj) {
346346
if (obj !== dst) {
347-
forEach(obj, function(value, key){
347+
forEach(obj, function(value, key) {
348348
dst[key] = value;
349349
});
350350
}
@@ -493,7 +493,7 @@ function isNumber(value){return typeof value === 'number';}
493493
* @param {*} value Reference to check.
494494
* @returns {boolean} True if `value` is a `Date`.
495495
*/
496-
function isDate(value){
496+
function isDate(value) {
497497
return toString.call(value) === '[object Date]';
498498
}
499499

@@ -611,7 +611,7 @@ function isElement(node) {
611611
* @param str 'key1,key2,...'
612612
* @returns {object} in the form of {key1:true, key2:true, ...}
613613
*/
614-
function makeMap(str){
614+
function makeMap(str) {
615615
var obj = {}, items = str.split(","), i;
616616
for ( i = 0; i < items.length; i++ )
617617
obj[ items[i] ] = true;
@@ -658,7 +658,7 @@ function size(obj, ownPropsOnly) {
658658

659659
if (isArray(obj) || isString(obj)) {
660660
return obj.length;
661-
} else if (isObject(obj)){
661+
} else if (isObject(obj)) {
662662
for (key in obj)
663663
if (!ownPropsOnly || obj.hasOwnProperty(key))
664664
count++;
@@ -757,7 +757,7 @@ function isLeafNode (node) {
757757
</file>
758758
</example>
759759
*/
760-
function copy(source, destination){
760+
function copy(source, destination) {
761761
if (isWindow(source) || isScope(source)) {
762762
throw ngMinErr('cpws',
763763
"Can't copy! Making copies of Window or Scope instances is not supported.");
@@ -786,7 +786,7 @@ function copy(source, destination){
786786
}
787787
} else {
788788
var h = destination.$$hashKey;
789-
forEach(destination, function(value, key){
789+
forEach(destination, function(value, key) {
790790
delete destination[key];
791791
});
792792
for ( var key in source) {
@@ -1060,7 +1060,7 @@ function tryDecodeURIComponent(value) {
10601060
*/
10611061
function parseKeyValue(/**string*/keyValue) {
10621062
var obj = {}, key_value, key;
1063-
forEach((keyValue || "").split('&'), function(keyValue){
1063+
forEach((keyValue || "").split('&'), function(keyValue) {
10641064
if ( keyValue ) {
10651065
key_value = keyValue.split('=');
10661066
key = tryDecodeURIComponent(key_value[0]);
@@ -1322,7 +1322,7 @@ function bootstrap(element, modules) {
13221322
}
13231323

13241324
var SNAKE_CASE_REGEXP = /[A-Z]/g;
1325-
function snake_case(name, separator){
1325+
function snake_case(name, separator) {
13261326
separator = separator || '_';
13271327
return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {
13281328
return (pos ? separator : '') + letter.toLowerCase();

0 commit comments

Comments
 (0)