Customizer: Only POST dirty settings to preview to improve performance.
props westonruter. fixes #29983. Built from https://develop.svn.wordpress.org/trunk@29905 git-svn-id: http://core.svn.wordpress.org/trunk@29660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -158,6 +158,7 @@ window.wp = window.wp || {};
|
||||
initialize: function( initial, options ) {
|
||||
this._value = initial; // @todo: potentially change this to a this.set() call.
|
||||
this.callbacks = $.Callbacks();
|
||||
this._dirty = false;
|
||||
|
||||
$.extend( this, options || {} );
|
||||
|
||||
@@ -187,6 +188,7 @@ window.wp = window.wp || {};
|
||||
return this;
|
||||
|
||||
this._value = to;
|
||||
this._dirty = true;
|
||||
|
||||
this.callbacks.fireWith( this, [ to, from ] );
|
||||
|
||||
|
||||
2
wp-includes/js/customize-base.min.js
vendored
2
wp-includes/js/customize-base.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user