         # store references to parent and children
         parent[@name] = @ if @name
         parent.subnodes.push(@)
-        parent.trigger('subnodes', @) if parent.events?['subnodes']
+        parent.sendEvent('subnodes', @)
 
     set_name: (name) ->
       # console.log 'set_name', name, this

    added: (child) =>
      # console.log 'added layout', child, @
      if child
        @trigger('subview', child) if @events?['subview']
      @update(null, child)

    # override to update the position of the parent view's children

      # store references subviews
      if parent instanceof View
        parent.subviews.push(@)
        parent.sendEvent('subviews', @)
        parent = parent.sprite

      @sprite.set_parent parent
