Changeset 37755
- Timestamp:
- 06/21/2016 01:34:19 PM (8 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r37678 r37755 4086 4086 4087 4087 // Add keydown listener to the instance of the Attachments view 4088 this. attachments.listenTo( this.controller, 'attachment:keydown:arrow', this.attachments.arrowEvent);4089 this. attachments.listenTo( this.controller, 'attachment:details:shift-tab', this.attachments.restoreFocus);4088 this.controller.on( 'attachment:keydown:arrow', _.bind( this.attachments.arrowEvent, this.attachments ) ); 4089 this.controller.on( 'attachment:details:shift-tab', _.bind( this.attachments.restoreFocus, this.attachments ) ); 4090 4090 4091 4091 this.views.add( this.attachments ); -
trunk/src/wp-includes/js/media/views/attachments/browser.js
r37610 r37755 355 355 356 356 // Add keydown listener to the instance of the Attachments view 357 this. attachments.listenTo( this.controller, 'attachment:keydown:arrow', this.attachments.arrowEvent);358 this. attachments.listenTo( this.controller, 'attachment:details:shift-tab', this.attachments.restoreFocus);357 this.controller.on( 'attachment:keydown:arrow', _.bind( this.attachments.arrowEvent, this.attachments ) ); 358 this.controller.on( 'attachment:details:shift-tab', _.bind( this.attachments.restoreFocus, this.attachments ) ); 359 359 360 360 this.views.add( this.attachments );
Note: See TracChangeset
for help on using the changeset viewer.