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) {
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 }
You can’t perform that action at this time.
0 commit comments