Fix JSHint errors introduced in [30120].
see #30193. git-svn-id: https://develop.svn.wordpress.org/trunk@30123 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7cd15026bd
commit
e871e28c5c
|
@ -1315,7 +1315,7 @@
|
|||
SettingsView = this.get('SettingsView'),
|
||||
obj = {};
|
||||
|
||||
if ( ! library || ! browser ) {
|
||||
if ( ! library || ! attachmentsBrowserView ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1327,17 +1327,17 @@
|
|||
priority: 40
|
||||
});
|
||||
|
||||
browser.sidebar.set( obj );
|
||||
attachmentsBrowserView.sidebar.set( obj );
|
||||
|
||||
if ( dragInfoText ) {
|
||||
browser.toolbar.set( 'dragInfo', new media.View({
|
||||
attachmentsBrowserView.toolbar.set( 'dragInfo', new media.View({
|
||||
el: $( '<div class="instructions">' + dragInfoText + '</div>' )[0],
|
||||
priority: -40
|
||||
}) );
|
||||
}
|
||||
|
||||
// Add the 'Reverse order' button to the toolbar.
|
||||
browser.toolbar.set( 'reverse', {
|
||||
attachmentsBrowserView.toolbar.set( 'reverse', {
|
||||
text: l10n.reverseOrder,
|
||||
priority: 80,
|
||||
|
||||
|
@ -3383,7 +3383,6 @@
|
|||
},
|
||||
|
||||
initialize: function( options ) {
|
||||
debugger;
|
||||
this.image = new media.model.PostImage( options.metadata );
|
||||
this.options.selection = new media.model.Selection( this.image.attachment, { multiple: false } );
|
||||
media.view.MediaFrame.Select.prototype.initialize.apply( this, arguments );
|
||||
|
|
Loading…
Reference in New Issue