Merge pull request #670 from JulienMelissas/patch-1
Add braces around if statement.
This commit is contained in:
commit
396dea5656
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue