wpLists: Pass the current element to `process()` to properly register event handlers.

Fixes a bug where new categories couldn't be added from the post edit screen.
Introduced in [38599].

Props dlh.
Fixes #38174.


git-svn-id: https://develop.svn.wordpress.org/trunk@38711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2016-10-03 18:38:43 +00:00
parent ab087dadfc
commit 9cfa200891
1 changed files with 2 additions and 2 deletions

View File

@ -789,8 +789,8 @@ wpList = {
init: function() {
var $list = this;
$list.wpList.process = function() {
$list.each( function( index, element ) {
$list.wpList.process = function( element ) {
$list.each( function() {
this.wpList.process( element );
} );
};