After [29507], move unreachable code from _requery() to Query.get().

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


git-svn-id: http://core.svn.wordpress.org/trunk@29307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-08-18 04:08:15 +00:00
parent 36e4e9917b
commit a0f2fe6599
2 changed files with 3 additions and 3 deletions

View File

@ -828,7 +828,7 @@ window.wp = window.wp || {};
var props;
if ( this.props.get('query') ) {
props = this.props.toJSON();
props.cache = ( true !== refresh || _.isUndefined( refresh ) );
props.cache = ( true !== refresh );
this.mirror( Query.get( props ) );
}
},
@ -1190,7 +1190,7 @@ window.wp = window.wp || {};
orderby = Query.orderby,
defaults = Query.defaultProps,
query,
cache = !! props.cache;
cache = !! props.cache || _.isUndefined( props.cache );
// Remove the `query` property. This isn't linked to a query,
// this *is* the query.

File diff suppressed because one or more lines are too long