             name = otherName
             break
 
-      # Brak if no view and name were found
+      # Break if no view and name were found
       return unless name and view and view.dispose
 
       # Dispose the view

    # Rendering
    # ---------

    # Get attributes from model or collection
    getTemplateData: ->
      serialize = (object) ->
        result = {}
        for key, value of object
          result[key] = if value instanceof Model
            serialize value.getAttributes()
          else
            value
        result

      modelAttributes = @model and @model.getAttributes()
      templateData = if modelAttributes
        # Return an object which delegates to the returned attributes
        # object so a custom getTemplateData might safely add and alter
        # properties (at least primitive values).
        utils.beget serialize modelAttributes
      else
        {}

      # If the model is a Deferred, add a flag to get the Deferred state
      if @model and typeof @model.state is 'function'
        templateData.resolved = @model.state() is 'resolved'

      templateData


      return if @disposed

      # Dispose subviews
      subview.dispose() for subview in @subviews

      # Unbind handlers of global events
      @unsubscribeAllEvents()
