WordPress.org

Make WordPress Core

Ticket #35853: 35853.diff

File 35853.diff, 1.2 KB (added by adamsilverstein, 6 years ago)
  • src/wp-includes/js/media/views/attachments/browser.js

     
    3838                        AttachmentView: wp.media.view.Attachment.Library
    3939                });
    4040
    41                 this.listenTo( this.controller, 'toggle:upload:attachment', _.bind( this.toggleUploader, this ) );
     41                this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
    4242                this.controller.on( 'edit:selection', this.editSelection );
    4343                this.createToolbar();
    4444                if ( this.options.sidebar ) {
  • src/wp-includes/js/media-views.js

     
    37543754                        AttachmentView: wp.media.view.Attachment.Library
    37553755                });
    37563756
    3757                 this.listenTo( this.controller, 'toggle:upload:attachment', _.bind( this.toggleUploader, this ) );
     3757                this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this );
    37583758                this.controller.on( 'edit:selection', this.editSelection );
    37593759                this.createToolbar();
    37603760                if ( this.options.sidebar ) {