How can I improve the following so that I only开发者_开发百科 trigger an event once per element?
http://jsfiddle.net/victorfoster/Q3JmZ/1/
I would like a square to only be toggled once when dragging over it, not multiple times.
You're looking for mouseenter
.
精彩评论