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
The API has been write-only since 1.9.0 and is going to be removed
in jQuery 4.0.0.
Also:
* make it more explicit why certain patches are tested in the context of
`jQuery.migrateDisablePatches` & related APIs
* fix an erroneous future tense in a few warnings
Copy file name to clipboardExpand all lines: warnings.md
+6
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,12 @@ This is _not_ a warning, but a console log message the plugin shows when it firs
171
171
172
172
**Solution:** Rename all usage of `jQuery.Deferred.getStackHook` to `jQuery.Deferred.getErrorHook`. If you previously assigned a function returning an error stack to `jQuery.Deferred.getStackHook` or `jQuery.Deferred.getErrorHook`, change it to return a full error object. If you aim to still support jQuery <3.7, assign the hook to `jQuery.Deferred.getErrorHook` first and only later to `jQuery.Deferred.getStackHook` to avoid a Migrate warning.
173
173
174
+
### \[event-global\] JQMIGRATE: jQuery.Deferred.getStackHook is removed; use jQuery.Deferred.getErrorHook
175
+
176
+
**Cause:**`jQuery.event.global` was an object with keys being event names for which event listeners have ever been added. Originally, it was needed for performance reasons and to fix memory leaks in old IE, but since jQuery 1.9.0, the library has only been recording the events, but it was not using that information anywhere. jQuery 4.0.0 removes the API.
177
+
178
+
**Solution:** Remove all usage of `jQuery.event.global`; it's unlikely any existing usage is needed.
0 commit comments