Ticket #22718: 22718.diff
| File 22718.diff, 730 bytes (added by , 13 years ago) |
|---|
-
wp-includes/js/media-models.js
858 858 859 859 // If single has changed, fire an event. 860 860 if ( this._single !== previous ) { 861 if ( previous ) 861 if ( previous ) { 862 862 previous.trigger( 'selection:unsingle', previous, this ); 863 864 // If the model was already removed, trigger the collection 865 // event manually. 866 if ( ! this.getByCid( previous.cid ) ) 867 this.trigger( 'selection:unsingle', previous, this ); 868 } 863 869 if ( this._single ) 864 870 this._single.trigger( 'selection:single', this._single, this ); 865 871 }