Permalink
Browse files

Make [data-webcomic-shortcuts] absolute.

The data-webcomic-shortcuts attribute–if assigned to an element on the
page–now forces Webcomic to only look for keyboard shortcut links
inside of the marked container.
  • Loading branch information...
1 parent 71832de commit cd6d04107553e19591c24f3683fd89cd81a27ec1 @mgsisk committed Jan 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/js/shortcuts.js
View
@@ -3,7 +3,7 @@ jQuery( function( $ ) {
function webcomic_shortcut( target ) {
var $e;
- if ( $( '[data-webcomic-shortcuts] ' + target + '[href]' ).length ) {
+ if ( $( '[data-webcomic-shortcuts]' ).length ) {
$e = $( '[data-webcomic-shortcuts]:first ' + target + '[href]:first' );
} else {
$e = $( target + '[href]:first' );

0 comments on commit cd6d041

Please sign in to comment.