Merge pull request #670 from JulienMelissas/patch-1

Add braces around if statement.
This commit is contained in:
Konstantin Obenland 2014-12-31 12:16:57 -08:00
commit 396dea5656
1 changed files with 2 additions and 1 deletions

View File

@ -8,8 +8,9 @@
var element = document.getElementById( location.hash.substring( 1 ) );
if ( element ) {
if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) )
if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
element.tabIndex = -1;
}
element.focus();
}