Media Grid: `$.when` expects a splat. Disambiguation: change `cache` to `refresh` as the arg name for `_requery()`.

See [29490], #29145.

Built from https://develop.svn.wordpress.org/trunk@29507


git-svn-id: http://core.svn.wordpress.org/trunk@29284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-08-15 19:00:16 +00:00
parent 7297f60992
commit 4d20246173
4 changed files with 5 additions and 5 deletions

View File

@ -824,11 +824,11 @@ window.wp = window.wp || {};
/** /**
* @access private * @access private
*/ */
_requery: function( cache ) { _requery: function( refresh ) {
var props; var props;
if ( this.props.get('query') ) { if ( this.props.get('query') ) {
props = this.props.toJSON(); props = this.props.toJSON();
props.cache = ( true !== cache ); props.cache = ( true !== refresh || _.isUndefined( refresh ) );
this.mirror( Query.get( props ) ); this.mirror( Query.get( props ) );
} }
}, },

File diff suppressed because one or more lines are too long

View File

@ -5906,7 +5906,7 @@
} }
if ( changed.length ) { if ( changed.length ) {
$.when( changed ).then( function() { $.when.apply( null, changed ).then( function() {
library._requery( true ); library._requery( true );
} ); } );
} }

File diff suppressed because one or more lines are too long