Timeline for Count to target with JavaScript
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 1, 2011 at 13:07 | vote | accept | Joe | ||
May 30, 2011 at 14:04 | comment | added | Tomalak | @RoToRa: If you think that's clearer. ;-) | |
May 30, 2011 at 14:00 | comment | added | RoToRa |
How about from += (from < to) ? +1 : -1; ?
|
|
May 29, 2011 at 7:41 | comment | added | Tomalak |
@RoToTa: Yes, you could say that. It's not really clean. Then again, it's crystal-clear what it does. An if (from < to) from++ else from--; would also be posible - I just wanted to stay on one line.
|
|
May 28, 2011 at 18:31 | comment | added | RoToRa |
Hmm, I'd consider from < to ? from++ : from--; bad style.
|
|
May 28, 2011 at 11:09 | history | edited | Tomalak | CC BY-SA 3.0 |
added 233 characters in body
|
May 28, 2011 at 10:17 | history | answered | Tomalak | CC BY-SA 3.0 |