Fix regression of using jQuery ON when bind should be used ref #28822
This commit is contained in:
parent
dd876b6d8a
commit
7dd2be207e
|
@ -180,7 +180,7 @@ jQuery( function( $ ) {
|
||||||
wp.customize.widgetsPreview.WidgetPartial
|
wp.customize.widgetsPreview.WidgetPartial
|
||||||
);
|
);
|
||||||
if ( hasSelectiveRefresh ) {
|
if ( hasSelectiveRefresh ) {
|
||||||
wp.customize.selectiveRefresh.on( 'partial-content-rendered', function() {
|
wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function() {
|
||||||
refresh_cart_fragment();
|
refresh_cart_fragment();
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ jQuery( function( $ ) {
|
||||||
wp.customize.widgetsPreview.WidgetPartial
|
wp.customize.widgetsPreview.WidgetPartial
|
||||||
);
|
);
|
||||||
if ( hasSelectiveRefresh ) {
|
if ( hasSelectiveRefresh ) {
|
||||||
wp.customize.selectiveRefresh.on( 'partial-content-rendered', function() {
|
wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function() {
|
||||||
init_price_filter();
|
init_price_filter();
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue