Skip to content

Commit 9f25be2

Browse files
authored
Refactor IIFE in common.js
Refactor the IIFE structure and remove unnecessary code.
1 parent 281044c commit 9f25be2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/js/_enqueues/admin/common.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,8 +2357,10 @@ $( function( $ ) {
23572357

23582358
/**
23592359
* Disable the submit button until all users radio buttons are checked.
2360+
*
2361+
* @since 7.0.0
23602362
*/
2361-
(function($){
2363+
(function(){
23622364
const usersForm = document.querySelector( '.users-php .delete-and-reassign-users-form' );
23632365

23642366
// Check if the form exists and contains any radio buttons.
@@ -2407,5 +2409,4 @@ $( function( $ ) {
24072409
radio.checked = e.target.value !== '-1';
24082410
});
24092411
});
2410-
2411-
})(jQuery);
2412+
})();

0 commit comments

Comments
 (0)