Skip to content

Commit

Permalink
No string comparisons!
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Apr 1, 2015
1 parent a8a3937 commit fd6d9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template.html
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ <h3>Result</h3>

render( function () {
var del = /DELETE/,
a = /A/,
body = $( "#body" )[ 0 ],
form = $( "#io form" )[ 0 ],
reset = $( "button[type='reset']" )[ 0 ],
Expand Down Expand Up @@ -604,7 +605,7 @@ <h3>Result</h3>

util.stop( e );

if ( anchor.nodeName !== "A" ) {
if ( !a.test( anchor.nodeName ) ) {
return;
}

Expand Down

0 comments on commit fd6d9ac

Please sign in to comment.