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

Corrected formatting errors in src/angular.js #11832

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/Angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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.
}

/**
Expand Down Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -1216,7 +1216,7 @@ function tryDecodeURIComponent(value) {
try {
return decodeURIComponent(value);
} catch (e) {
// Ignore any invalid uri component
// Ignore any invalid uri component.
}
}

Expand Down Expand Up @@ -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';

Expand Down Expand Up @@ -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}'",
Expand Down