File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,18 +62,18 @@ export function register_ajax_destroy_handle(callback) {
62
62
}
63
63
64
64
/**
65
- * Deregisters a previously registered callback from ajax destroy.
65
+ * Unregisters a previously registered callback from ajax destroy.
66
66
*
67
- * @param {Function } callback - The callback to deregister .
67
+ * @param {Function } callback - The callback to unregister .
68
68
* @returns {void }
69
69
*/
70
- export function deregister_ajax_destroy_handle ( callback ) {
70
+ export function unregister_ajax_destroy_handle ( callback ) {
71
71
const index = destroy_handles . indexOf ( callback ) ;
72
72
if ( index > - 1 ) {
73
73
destroy_handles . splice ( index , 1 ) ;
74
74
} else {
75
75
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 : '
77
77
+ callback
78
78
) ;
79
79
}
You can’t perform that action at this time.
0 commit comments