Skip to content

Commit b0a964b

Browse files
committed
rename deregister to unregister
1 parent 39f69fd commit b0a964b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ssr/destroy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ export function register_ajax_destroy_handle(callback) {
6262
}
6363

6464
/**
65-
* Deregisters a previously registered callback from ajax destroy.
65+
* Unregisters a previously registered callback from ajax destroy.
6666
*
67-
* @param {Function} callback - The callback to deregister.
67+
* @param {Function} callback - The callback to unregister.
6868
* @returns {void}
6969
*/
70-
export function deregister_ajax_destroy_handle(callback) {
70+
export function unregister_ajax_destroy_handle(callback) {
7171
const index = destroy_handles.indexOf(callback);
7272
if (index > -1) {
7373
destroy_handles.splice(index, 1);
7474
} else {
7575
console.warn(
76-
'Warning: Ajax destroy handle is not registered and cannot be deregistered: '
76+
'Warning: Ajax destroy handle is not registered and cannot be unregistered: '
7777
+ callback
7878
);
7979
}

0 commit comments

Comments
 (0)