             unless state is null
                 if @[state + '_events']
                     events = _.extend(events, @[state + '_events'])
-            
+
             return events
 )

        become: (state) -> @changeState(state)

        ###
        Creates a new events object, from this.events and this.`state`_events
        ###


        ###
        Ensure the classname is applied, then set the parent and children if any
        are passed in. Does the normal backbone constructor and then does the
        first state change.
        ###
        constructor: (options) ->
            @children = []

            if options.el then @ensureClass(options.el, options.className)
            if options.parent then @setParent(options.parent)
            if options.children?.length then @addChildren()
