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

Commit 99eeec3

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 ce8a752 commit 99eeec3

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
@@ -293,7 +293,7 @@ function forEachSorted(obj, iterator, context) {
293293
* @returns {function(*, string)}
294294
*/
295295
function reverseParams(iteratorFn) {
296-
return function(value, key) { iteratorFn(key, value); };
296+
return function(value, key) {iteratorFn(key, value);};
297297
}
298298

299299
/**
@@ -705,7 +705,7 @@ function isElement(node) {
705705
* @returns {object} in the form of {key1:true, key2:true, ...}
706706
*/
707707
function makeMap(str) {
708-
var obj = {}, items = str.split(","), i;
708+
var obj = {}, items = str.split(','), i;
709709
for (i = 0; i < items.length; i++) {
710710
obj[items[i]] = true;
711711
}
@@ -1250,7 +1250,7 @@ function startingTag(element) {
12501250
return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :
12511251
elemHtml.
12521252
match(/^(<[^>]+>)/)[1].
1253-
replace(/^<([\w\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); });
1253+
replace(/^<([\w\-]+)/, function(match, nodeName) {return '<' + lowercase(nodeName);});
12541254
} catch (e) {
12551255
return lowercase(elemHtml);
12561256
}

0 commit comments

Comments
 (0)