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:
Dominik Schilling
2014-10-15 17:50:18 +00:00
parent 1ab3190ddc
commit 4020eacd8b
4 changed files with 16 additions and 3 deletions

View File

@@ -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 ] );

File diff suppressed because one or more lines are too long