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
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,13 @@ See jQuery-ui [commit](https://github.com/jquery/jquery-ui/commit/c0093b599fcd58
243
243
**Solution:** Remove any uses of `jQuery.cssProps` in application code.
244
244
245
245
#### JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray
246
+
246
247
**Cause:** Older versions of JavaScript made it difficult to determine if a particular object was a true Array, so jQuery provided a cross-browser function to do the work. The browsers supported by jQuery 3.0 all provide a standard method for this purpose.
247
248
248
249
**Solution:** Replace any calls to `jQuery.isArray` with `Array.isArray`.
250
+
251
+
#### JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim
252
+
253
+
**Cause:** Older versions of IE & Android Browser didn't implement a method to `trim` strings so jQuery provided a cross-browser implementation. The browsers supported by jQuery 3.0 all provide a standard method for this purpose.
254
+
255
+
**Solution:** Replace any calls to `jQuery.trim( text )` with `text.trim()` if you know `text` is a string; otherwise, you can replace it with `text == null ? "" : text.trim()`.
0 commit comments