Changeset 29071
- Timestamp:
- 07/10/2014 06:02:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-grid.js
r29070 r29071 589 589 // The right arrow key 590 590 if ( event.keyCode === 39 ) { 591 if ( ! this.hasNext ) { return; } 592 _.debounce( this.nextMediaItem(), 250 ); 591 if ( ! this.hasNext ) { 592 return; 593 } 594 this.nextMediaItem(); 593 595 } 594 596 // The left arrow key 595 597 if ( event.keyCode === 37 ) { 596 if ( ! this.hasPrevious ) { return; } 597 _.debounce( this.previousMediaItem(), 250 ); 598 if ( ! this.hasPrevious ) { 599 return; 600 } 601 this.previousMediaItem(); 598 602 } 599 603 },
Note: See TracChangeset
for help on using the changeset viewer.