style(src/Angular.js): make comment formatting consistent

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.

Closes #11832
This commit is contained in:
David Goldberg
2015-05-07 09:59:21 -07:00
committed by Martin Staffa
parent d803354d7c
commit 36b149332a
+6 -6
View File
@@ -705,8 +705,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.
}
/**
@@ -1196,7 +1196,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;
}
}
@@ -1344,7 +1344,7 @@ function tryDecodeURIComponent(value) {
try {
return decodeURIComponent(value);
} catch (e) {
// Ignore any invalid uri component
// Ignore any invalid uri component.
}
}
@@ -1589,7 +1589,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';
@@ -1683,7 +1683,7 @@ function bootstrap(element, modules, config) {
if (element.injector()) {
var tag = (element[0] === window.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}'",