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

Commit 6a953bb

Browse files
livvielinpetebacondarwin
authored andcommitted
style(src): delete whitespace and use single quotes
This change edits syntax for code consistency. It removes whitespace to match the style of the rest of the code, and changes double quotes to single quotes to conform with Google's JavaScript Style Guide. Closes #12889
1 parent 3092fd3 commit 6a953bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Angular.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function forEachSorted(obj, iterator, context) {
313313
* @returns {function(*, string)}
314314
*/
315315
function reverseParams(iteratorFn) {
316-
return function(value, key) { iteratorFn(key, value); };
316+
return function(value, key) {iteratorFn(key, value);};
317317
}
318318

319319
/**
@@ -721,7 +721,7 @@ function isElement(node) {
721721
* @returns {object} in the form of {key1:true, key2:true, ...}
722722
*/
723723
function makeMap(str) {
724-
var obj = {}, items = str.split(","), i;
724+
var obj = {}, items = str.split(','), i;
725725
for (i = 0; i < items.length; i++) {
726726
obj[items[i]] = true;
727727
}
@@ -1240,7 +1240,7 @@ function startingTag(element) {
12401240
return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :
12411241
elemHtml.
12421242
match(/^(<[^>]+>)/)[1].
1243-
replace(/^<([\w\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); });
1243+
replace(/^<([\w\-]+)/, function(match, nodeName) {return '<' + lowercase(nodeName);});
12441244
} catch (e) {
12451245
return lowercase(elemHtml);
12461246
}

0 commit comments

Comments
 (0)