You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: warnings.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -167,8 +167,8 @@ See jQuery-ui [commit](https://github.com/jquery/jquery-ui/commit/c0093b599fcd58
167
167
168
168
**Solution:** Rename any of the older usage to `jQuery.expr.pseudos`. The functionality is identical.
169
169
170
-
### JQMIGRATE: jQuery.fn.toggleClass( boolean ) is deprecated
170
+
### JQMIGRATE: jQuery.fn.toggleClass( [boolean] ) is deprecated
171
171
172
-
**Cause:** Calling `.toggleClass()` with no arguments or with a single Boolean `true` or `false` argument has been deprecated. Its behavior was poorly documented, but essentially the method saved away the current `class` value in a data item when the class was removed and restored the saved value when it was toggled back. If you do not believe you are specificially trying to use this form of the method, it is possible you are accidentally doing so via an inadvertent undefined value, as `.toggleClass( undefined )` toggles all classes.
172
+
**Cause:** Calling `.toggleClass()` with no arguments, or with a single Boolean `true` or `false` argument, has been deprecated. Its behavior was poorly documented, but essentially the method saved away the current `class` value in a data item when the class was removed and restored the saved value when it was toggled back. If you do not believe you are specificially trying to use this form of the method, it is possible you are accidentally doing so via an inadvertent undefined value, as `.toggleClass( undefined )` toggles all classes.
173
173
174
174
**Solution:** If this functionality is still needed, save the current full `.attr( "class" )` value in a data item and restore it when required.
0 commit comments