mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Theme Customizer: Maintain scrolled position when preview performs a full refresh. Allow wp.customize.Messenger to send/receive falsy values. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20745 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -469,14 +469,14 @@ if ( typeof wp === 'undefined' )
|
||||
|
||||
message = JSON.parse( event.data );
|
||||
|
||||
if ( message && message.id && message.data && this.topics[ message.id ] )
|
||||
if ( message && message.id && typeof message.data !== 'undefined' && this.topics[ message.id ] )
|
||||
this.topics[ message.id ].fireWith( this, [ message.data ]);
|
||||
},
|
||||
|
||||
send: function( id, data ) {
|
||||
var message;
|
||||
|
||||
data = data || {};
|
||||
data = typeof data === 'undefined' ? {} : data;
|
||||
|
||||
if ( ! this.url() )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user