Skip to content
Permalink
Browse files

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
  • Loading branch information
livvielin authored and petebacondarwin committed Sep 18, 2015
1 parent 3092fd3 commit 6a953bb0cbc7695d8cb39c7916f3abd6df4ce48b
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Angular.js
@@ -313,7 +313,7 @@ function forEachSorted(obj, iterator, context) {
* @returns {function(*, string)}
*/
function reverseParams(iteratorFn) {
return function(value, key) { iteratorFn(key, value); };
return function(value, key) {iteratorFn(key, value);};
}

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

0 comments on commit 6a953bb

Please sign in to comment.
You can’t perform that action at this time.