Add braces around if statement.

Running jshint on this file returned an error, adding braces fixed it. Please add braces around if statements!!! :)
This commit is contained in:
Julien Melissas 2014-12-24 00:19:34 -05:00
parent 37d283481f
commit 67fb1af3f3
1 changed files with 2 additions and 1 deletions

View File

@ -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();
} }