Make WordPress Core

Ticket #36861: 36861.diff

File 36861.diff, 1.1 KB (added by adamsilverstein, 10 years ago)
  • src/wp-includes/js/media/controllers/edit-image.js

     
    3333         * @since 3.9.0
    3434         */
    3535        activate: function() {
    36                 this.listenTo( this.frame, 'toolbar:render:edit-image', this.toolbar );
     36                this.toolbar;
    3737        },
    3838
    3939        /**
     
    4040         * @since 3.9.0
    4141         */
    4242        deactivate: function() {
    43                 this.stopListening( this.frame );
    4443        },
    4544
    4645        /**
  • src/wp-includes/js/media-views.js

     
    458458                url:     ''
    459459        },
    460460
     461
    461462        /**
    462463         * @since 3.9.0
    463464         */
    464465        activate: function() {
    465                 this.listenTo( this.frame, 'toolbar:render:edit-image', this.toolbar );
     466                this.toolbar();
    466467        },
    467468
    468469        /**
     
    469470         * @since 3.9.0
    470471         */
    471472        deactivate: function() {
    472                 this.stopListening( this.frame );
    473473        },
    474474
    475475        /**