summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widgets/contact-info/contact-info-map.js')
-rw-r--r--plugins/jetpack/modules/widgets/contact-info/contact-info-map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/widgets/contact-info/contact-info-map.js b/plugins/jetpack/modules/widgets/contact-info/contact-info-map.js
index cf09d91c..c7036222 100644
--- a/plugins/jetpack/modules/widgets/contact-info/contact-info-map.js
+++ b/plugins/jetpack/modules/widgets/contact-info/contact-info-map.js
@@ -31,7 +31,7 @@ jQuery( function( $ ) {
setupContactMaps();
- if ( wp && wp.customize && wp.customizerHasPartialWidgetRefresh() ) {
+ if ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh ) {
wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function( placement ) {
if ( wp.isJetpackWidgetPlaced( placement, 'widget_contact_info' ) ) {
setupContactMaps( placement.container );