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 ce8a752 commit 99eeec358c40ca9df3c5262ba84d547534c64b68
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Angular.js
@@ -293,7 +293,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);};
}

/**
@@ -705,7 +705,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;
}
@@ -1250,7 +1250,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 99eeec3

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