Timeline for Various animation functions
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 16, 2016 at 2:45 | vote | accept | user308553 | ||
| Sep 21, 2013 at 8:42 | comment | added | Victor | I think it comes to personal preference, IMO it adds pollution to the code. | |
| Sep 21, 2013 at 6:49 | comment | added | Roman Susi | It may be good practice to name variables with dollar prefix to get a hint it's jQuery object: var $diagonalLine = $("#diagonalLine"); | |
| Sep 21, 2013 at 2:29 | comment | added | icktoofay |
To be pedantic, getElementById is usually implemented using a hash table rather than traversing the DOM, which makes it fairly quick. That said, constructing the jQuery object may make it much more expensive as you point out.
|
|
| Sep 21, 2013 at 1:44 | review | First posts | |||
| Sep 21, 2013 at 1:53 | |||||
| Sep 21, 2013 at 1:42 | history | edited | Victor | CC BY-SA 3.0 |
added 453 characters in body
|
| Sep 21, 2013 at 1:29 | history | answered | Victor | CC BY-SA 3.0 |