Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
j-hernandez
· 13y ago · 0 comments
Aside from losing input when tabbing out, works a treat in Opera. Can think of a couple of places that a fork of this might come in handy in my work this week. Clever, thanks for sharing
Comments
[–]
untothebreach
13y ago
it does a parseFloat() on the input, so input that can't be coerced into a float gets turned into NaN and not displayed.
[–]
j-hernandez
OP
13y ago
Makes sense, hadn't even looked that closely at the code before I commented - all 30 lines of it, ha. Shame on me.
[–]
untothebreach
13y ago
Looks like that particular problem has been fixed.