From df81309e9a66ddcc75ed6b6b59ff07f0e927962a Mon Sep 17 00:00:00 2001 From: David Goldberg Date: Thu, 7 May 2015 09:59:21 -0700 Subject: [PATCH] Formatted changes to be consistent with file Corrected formatting errors on lines 258, 695, 696, 1096, 1219, 1451, and 1536 by adding periods at the end of single line comments that were missing them in order to be consistent with the formatting found in the file. Capitalized the first letter in the first word of the comments on lines 695, 696, 1096, to be consistent with the formatting of the rest of the file. Added a space after the // in the comment on line 1536 to be consistent with the formatting of the file. --- src/Angular.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Angular.js b/src/Angular.js index 824c0a9d70c8..a0b3248fd6e6 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -255,7 +255,7 @@ function forEach(obj, iterator, context) { if (isFunction(obj)) { for (key in obj) { // Need to check if hasOwnProperty exists, - // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function + // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function. if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) { iterator.call(context, obj[key], key, obj); } @@ -692,8 +692,8 @@ var escapeForRegexp = function(s) { */ function isElement(node) { return !!(node && - (node.nodeName // we are a direct element - || (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API + (node.nodeName // We are a direct element. + || (node.prop && node.attr && node.find))); // We have an on and find method part of jQuery API. } /** @@ -1093,7 +1093,7 @@ function bind(self, fn) { : fn.call(self); }; } else { - // in IE, native methods are not functions so they cannot be bound (note: they don't need to be) + // In IE, native methods are not functions so they cannot be bound (note: they don't need to be). return fn; } } @@ -1216,7 +1216,7 @@ function tryDecodeURIComponent(value) { try { return decodeURIComponent(value); } catch (e) { - // Ignore any invalid uri component + // Ignore any invalid uri component. } } @@ -1448,7 +1448,7 @@ function angularInit(element, bootstrap) { module, config = {}; - // The element `element` has priority over any other element + // The element `element` has priority over any other element. forEach(ngAttrPrefixes, function(prefix) { var name = prefix + 'app'; @@ -1533,7 +1533,7 @@ function bootstrap(element, modules, config) { if (element.injector()) { var tag = (element[0] === document) ? 'document' : startingTag(element); - //Encode angle brackets to prevent input from being sanitized to empty string #8683 + // Encode angle brackets to prevent input from being sanitized to empty string #8683. throw ngMinErr( 'btstrpd', "App Already Bootstrapped with this Element '{0}'",