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

git-svn-id: https://develop.svn.wordpress.org/trunk@29531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-08-18 04:07:03 +00:00
parent 36b5f034ab
commit 75f20c3e69
1 changed files with 2 additions and 2 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.