Fix JSHint errors in media-models.js.
props kadamwhite. fixes #26132. git-svn-id: https://develop.svn.wordpress.org/trunk@26295 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
555703dff2
commit
6174ec6e56
@ -1,3 +1,4 @@
|
|||||||
|
/* global _wpMediaModelsL10n:false */
|
||||||
window.wp = window.wp || {};
|
window.wp = window.wp || {};
|
||||||
|
|
||||||
(function($){
|
(function($){
|
||||||
@ -233,7 +234,7 @@ window.wp = window.wp || {};
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
parse: function( resp, xhr ) {
|
parse: function( resp ) {
|
||||||
if ( ! resp )
|
if ( ! resp )
|
||||||
return resp;
|
return resp;
|
||||||
|
|
||||||
@ -296,7 +297,7 @@ window.wp = window.wp || {};
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Automatically sort the collection when the order changes.
|
// Automatically sort the collection when the order changes.
|
||||||
_changeOrder: function( model, order ) {
|
_changeOrder: function() {
|
||||||
if ( this.comparator )
|
if ( this.comparator )
|
||||||
this.sort();
|
this.sort();
|
||||||
},
|
},
|
||||||
@ -324,7 +325,7 @@ window.wp = window.wp || {};
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_changeFilteredProps: function( model, options ) {
|
_changeFilteredProps: function( model ) {
|
||||||
// If this is a query, updating the collection will be handled by
|
// If this is a query, updating the collection will be handled by
|
||||||
// `this._requery()`.
|
// `this._requery()`.
|
||||||
if ( this.props.get('query') )
|
if ( this.props.get('query') )
|
||||||
@ -365,7 +366,7 @@ window.wp = window.wp || {};
|
|||||||
validator: function( attachment ) {
|
validator: function( attachment ) {
|
||||||
if ( ! this.validateDestroyed && attachment.destroyed )
|
if ( ! this.validateDestroyed && attachment.destroyed )
|
||||||
return false;
|
return false;
|
||||||
return _.all( this.filters, function( filter, key ) {
|
return _.all( this.filters, function( filter ) {
|
||||||
return !! filter.call( this, attachment );
|
return !! filter.call( this, attachment );
|
||||||
}, this );
|
}, this );
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user