From d0a3cc64fd32976a49eaf5de7fabef85be19a0b9 Mon Sep 17 00:00:00 2001 From: Livvie Lin Date: Thu, 17 Sep 2015 23:53:31 -0700 Subject: [PATCH] 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. --- src/Angular.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Angular.js b/src/Angular.js index fdd72ecf6883..35040643b961 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -308,7 +308,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);}; } /** @@ -712,7 +712,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; } @@ -1220,7 +1220,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); }