Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sophiebits
on Nov 1, 2013
|
parent
|
context
|
favorite
| on:
Optimizing AngularJS
Cool! Any reason you didn't just add a onMouseLeave handler too? If you do you don't need the componentWillReceiveProps, which I think is a bit nicer:
http://jsfiddle.net/spicyj/DGLtv/
wingspan
on Nov 1, 2013
[–]
No reason in particular, just put it together quickly. Yours is a good option since it keeps the DOM count low instead of letting it grow as you mouse around :)
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://jsfiddle.net/spicyj/DGLtv/