Skip to content

Commit 36b1493

Browse files
gberg1Narretz
authored andcommitted
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 angular#11832
1 parent d803354 commit 36b1493

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Angular.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ var escapeForRegexp = function(s) {
705705
*/
706706
function isElement(node) {
707707
return !!(node &&
708-
(node.nodeName // we are a direct element
709-
|| (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API
708+
(node.nodeName // We are a direct element.
709+
|| (node.prop && node.attr && node.find))); // We have an on and find method part of jQuery API.
710710
}
711711

712712
/**
@@ -1196,7 +1196,7 @@ function bind(self, fn) {
11961196
: fn.call(self);
11971197
};
11981198
} else {
1199-
// in IE, native methods are not functions so they cannot be bound (note: they don't need to be)
1199+
// In IE, native methods are not functions so they cannot be bound (note: they don't need to be).
12001200
return fn;
12011201
}
12021202
}
@@ -1344,7 +1344,7 @@ function tryDecodeURIComponent(value) {
13441344
try {
13451345
return decodeURIComponent(value);
13461346
} catch (e) {
1347-
// Ignore any invalid uri component
1347+
// Ignore any invalid uri component.
13481348
}
13491349
}
13501350

@@ -1589,7 +1589,7 @@ function angularInit(element, bootstrap) {
15891589
module,
15901590
config = {};
15911591

1592-
// The element `element` has priority over any other element
1592+
// The element `element` has priority over any other element.
15931593
forEach(ngAttrPrefixes, function(prefix) {
15941594
var name = prefix + 'app';
15951595

@@ -1683,7 +1683,7 @@ function bootstrap(element, modules, config) {
16831683

16841684
if (element.injector()) {
16851685
var tag = (element[0] === window.document) ? 'document' : startingTag(element);
1686-
//Encode angle brackets to prevent input from being sanitized to empty string #8683
1686+
// Encode angle brackets to prevent input from being sanitized to empty string #8683.
16871687
throw ngMinErr(
16881688
'btstrpd',
16891689
"App already bootstrapped with this element '{0}'",

0 commit comments

Comments
 (0)