 
 updateWindowHeight = ->  window.updateHeight() if window.updateHeight
 
-class window.AutoCompletedAddToChannelView extends Backbone.Factlink.PlainView
+class window.AutoCompletedAddToChannelView extends Backbone.Marionette.Layout
   tagName: "div"
   className: "add-to-channel"
   events:

    "click .show-input-button": "showInput"
    "mouseenter .auto_complete>div": "selectAddNew"
    "mouseleave .auto_complete>div": "deActivateAddNew"

  activeChannelKey: -> @_activeChannelKey


  onRender: ->
    @$(".auto_complete ul").preventScrollPropagation()

    @added_channels.show(@_added_channels_view)
    @auto_completes.show(@_auto_completes_view)

    updateWindowHeight()

