- prev_hover = hover
- for w in selected
- if w.style is STYLE_HOVER and w isnt hover
- w.set_style STYLE_SELECTED
- for w in supply
- if w.style is STYLE_HOVER and w isnt hover
- w.set_style STYLE_NORMAL
- for w in on_canvas
- if w.style is STYLE_HOVER and w isnt hover
- w.set_style STYLE_NORMAL
- if hover
+ if prev_hover?
+ # FIXME
+ if selected[prev_hover.id]?
+ prev_hover.set_style STYLE_SELECTED
+ else
+ prev_hover.set_style STYLE_NORMAL
+ if hover?