Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 05c8d88

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.
1 parent aa57f57 commit 05c8d88

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Angular.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,8 @@ var escapeForRegexp = function(s) {
707707
*/
708708
function isElement(node) {
709709
return !!(node &&
710-
(node.nodeName // we are a direct element
711-
|| (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API
710+
(node.nodeName // We are a direct element.
711+
|| (node.prop && node.attr && node.find))); // We have an on and find method part of jQuery API.
712712
}
713713

714714
/**
@@ -1198,7 +1198,7 @@ function bind(self, fn) {
11981198
: fn.call(self);
11991199
};
12001200
} else {
1201-
// in IE, native methods are not functions so they cannot be bound (note: they don't need to be)
1201+
// In IE, native methods are not functions so they cannot be bound (note: they don't need to be).
12021202
return fn;
12031203
}
12041204
}
@@ -1346,7 +1346,7 @@ function tryDecodeURIComponent(value) {
13461346
try {
13471347
return decodeURIComponent(value);
13481348
} catch (e) {
1349-
// Ignore any invalid uri component
1349+
// Ignore any invalid uri component.
13501350
}
13511351
}
13521352

@@ -1591,7 +1591,7 @@ function angularInit(element, bootstrap) {
15911591
module,
15921592
config = {};
15931593

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

@@ -1685,7 +1685,7 @@ function bootstrap(element, modules, config) {
16851685

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

0 commit comments

Comments
 (0)