 
   originalDOMRangeAttach.apply @, arguments
 
-class BlazeComponent
+class BaseComponent
   @components: {}
 
   @register: (componentName, componentClass) ->

  @getComponent: (componentName) ->
    @components[componentName] or null

  @renderComponent: (componentClass) ->
    # To allow calling component.renderComponent() on an unregistered component.
    componentClass ?= @

    # You have to override this method with a method which returns a template name or template itself.
    throw new Error "Component class method 'template' not overridden."

  onCreated: ->

  onRendered: ->
