summaryrefslogtreecommitdiffstats
path: root/js/vendor/jquery/src/attributes/classes.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/jquery/src/attributes/classes.js')
-rw-r--r--js/vendor/jquery/src/attributes/classes.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/vendor/jquery/src/attributes/classes.js b/js/vendor/jquery/src/attributes/classes.js
index 7d714b8e1..101138415 100644
--- a/js/vendor/jquery/src/attributes/classes.js
+++ b/js/vendor/jquery/src/attributes/classes.js
@@ -83,7 +83,7 @@ jQuery.fn.extend({
}
}
- // only assign if different to avoid unneeded rendering.
+ // Only assign if different to avoid unneeded rendering.
finalValue = value ? jQuery.trim( cur ) : "";
if ( elem.className !== finalValue ) {
elem.className = finalValue;
@@ -110,14 +110,14 @@ jQuery.fn.extend({
return this.each(function() {
if ( type === "string" ) {
- // toggle individual class names
+ // Toggle individual class names
var className,
i = 0,
self = jQuery( this ),
classNames = value.match( rnotwhite ) || [];
while ( (className = classNames[ i++ ]) ) {
- // check each className given, space separated list
+ // Check each className given, space separated list
if ( self.hasClass( className ) ) {
self.removeClass( className );
} else {
@@ -132,7 +132,7 @@ jQuery.fn.extend({
data_priv.set( this, "__className__", this.className );
}
- // If the element has a class name or if we're passed "false",
+ // If the element has a class name or if we're passed `false`,
// then remove the whole classname (if there was one, the above saved it).
// Otherwise bring back whatever was previously saved (if anything),
// falling back to the empty string if nothing was stored.