forked from mirror/_s
Merge pull request #670 from JulienMelissas/patch-1
Add braces around if statement.
This commit is contained in:
commit
396dea5656
|
@ -8,8 +8,9 @@
|
||||||
var element = document.getElementById( location.hash.substring( 1 ) );
|
var element = document.getElementById( location.hash.substring( 1 ) );
|
||||||
|
|
||||||
if ( element ) {
|
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.tabIndex = -1;
|
||||||
|
}
|
||||||
|
|
||||||
element.focus();
|
element.focus();
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue