News for hackers. Stuff that matters.
Re:Optimizing AngularJS by spicyj on Friday November 01, 2013 @03:29AM (#6652347)
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/

Re:Optimizing AngularJS by wingspan on Friday November 01, 2013 @11:11AM (#6654281)
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 :)