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
* Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.
12230
-
* @param state A boolean value to determine whether the class should be added or removed.
* @deprecated Deprecated since 3.0. See \`{@link https://github.com/jquery/jquery/pull/2618 }\`.
12234
-
*
12235
-
* **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.
12236
-
*
12237
-
* **Solution**: If this functionality is still needed, save the current full `.attr( "class" )` value in a data item and restore it when required.
12238
-
*/
12239
-
toggleClass(state?: boolean): this;
12240
12228
/**
12241
12229
* Execute all handlers and behaviors attached to the matched elements for the given event type.
Copy file name to clipboardExpand all lines: types/jquery/JQueryStatic.d.ts
-273Lines changed: 0 additions & 273 deletions
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,6 @@ interface JQueryStatic {
15
15
* @since 1.4.3
16
16
*/
17
17
cssHooks: JQuery.CSSHooks;
18
-
/**
19
-
* An object containing all CSS properties that may be used without a unit. The .css() method uses this object to see if it may append px to unitless values.
* @deprecated Deprecated since 3.3. Internal. See \`{@link https://github.com/jquery/jquery/issues/3629 }\`.
2190
-
*
2191
-
* **Cause**: This method returns `true` if its argument is thought to be a `window` element. It was created for internal use and is not a reliable way of detecting `window` for public needs.
2192
-
*
2193
-
* **Solution**: Remove any use of `jQuery.isWindow()` from code. If it is truly needed it can be replaced with a check for `obj != null && obj === obj.window` which was the test used inside this method.
2194
-
* @example ````Finds out if the parameter is a window.
* @deprecated Deprecated since 3.3. Use \`{@link DateConstructor.now Date.now}\`.
2517
-
*/
2518
-
now(): number;
2519
2344
/**
2520
2345
* Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain input elements with name/value properties.
2521
2346
* @param obj An array, a plain object, or a jQuery object to serialize.
* @deprecated Deprecated since 3.0. Use \`{@link JSON.parse }\`.
2654
-
*
2655
-
* **Cause**: The `jQuery.parseJSON` method in recent jQuery is identical to the native `JSON.parse`. As of jQuery 3.0 `jQuery.parseJSON` is deprecated.
2656
-
*
2657
-
* **Solution**: Replace any use of `jQuery.parseJSON` with `JSON.parse`.
2658
-
* @example ````Parse a JSON string.
2659
-
```javascript
2660
-
var obj = jQuery.parseJSON( '{ "name": "John" }' );
2661
-
alert( obj.name === "John" );
2662
-
```
2663
-
*/
2664
-
parseJSON(json: string): any;
2665
2473
/**
2666
2474
* Parses a string into an XML document.
2667
2475
* @param data a well-formed XML string to be parsed
0 commit comments