$('.link-handle').bind { 'mousedown': (e) -> if hoveredComponent isnt null startLinkDragging hoveredComponent, e # 'mouseover': (e) -> # if (comp: hoveredComponent) isnt null # if comp.action && comp.action.action is ACTIONS.switchScreen # screenName: comp.action.screenName # screen: _(application.screens).detect (s) -> s.name is screenName # if screen # renderLinkOverlay comp, rectOfNode(screen.node) # 'mouseout': (e) -> # unless activeMode()?.isScreenLinkingMode # hideLinkOverlay() }