Changeset 37678
- Timestamp:
- 06/10/2016 09:11:28 PM (9 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r37610 r37678 463 463 */ 464 464 activate: function() { 465 this. listenTo( this.frame, 'toolbar:render:edit-image', this.toolbar);465 this.frame.on( 'toolbar:render:edit-image', _.bind( this.toolbar, this ) ); 466 466 }, 467 467 … … 470 470 */ 471 471 deactivate: function() { 472 this. stopListening( this.frame);472 this.frame.off( 'toolbar:render:edit-image' ); 473 473 }, 474 474 -
trunk/src/wp-includes/js/media/controllers/edit-image.js
r33337 r37678 34 34 */ 35 35 activate: function() { 36 this. listenTo( this.frame, 'toolbar:render:edit-image', this.toolbar);36 this.frame.on( 'toolbar:render:edit-image', _.bind( this.toolbar, this ) ); 37 37 }, 38 38 … … 41 41 */ 42 42 deactivate: function() { 43 this. stopListening( this.frame);43 this.frame.off( 'toolbar:render:edit-image' ); 44 44 }, 45 45
Note: See TracChangeset
for help on using the changeset viewer.