     # ----------------------------
 
     # View container element
-    # Set this property in a derived class to specify to selector
-    # of the container element. The view is automatically inserted
-    # into the container when it’s rendered.
+    # Set this property in a derived class to specify the container element.
+    # Normally this is a selector string but it might also be an element or
+    # jQuery object.
+    # The view is automatically inserted into the container when it’s rendered.
     # As an alternative you might pass a `container` option to the constructor.
-    containerSelector: null
+    container: null
 
     # Method which is used for adding the view to the DOM
     # Like jQuery’s `html`, `prepend`, `append`, `after`, `before` etc.

        # HTML5-only tags in IE7 and IE8.
        @$el.empty().append html

      # Return the view
      this

    # This method is called after a specific `render` of a derived class
    afterRender: ->
      # Create a shortcut to the container element
      # The view will be automatically appended to the container when rendered
      # `container` option may override `autoRender` instance property
      container = if @options.container?
          @options.container
        else
          @containerSelector

      # Automatically append to DOM if the container element is set
      if container
        # Get the attach method name
        containerMethod = if @options.containerMethod?
            @options.containerMethod
          else
            @containerMethod

        # Append the view to the DOM
        $(container)[containerMethod] @el

        # Trigger an event
        @trigger 'addedToDOM'

      # Return this
      this

    # Disposal

      if @model or @collection
        @modelBind 'dispose', @dispose

      # Call `afterInitialize` if `initialize` was not wrapped
      unless @initializeIsWrapped
        @afterInitialize()

    # This method is called after a specific `initialize` of a derived class
    afterInitialize: ->
      # Render automatically if set by options or instance property
      @render() if @autoRender

    # User input event handling
    # -------------------------
