       return
 
     sendEvent: (name, value) ->
-      @[name] = value
       # send event
-      @trigger(name, value, @) if @events?[name]
+      if @events?[name]
+        @trigger(name, value, @) 
+      # else
+      #   console.log 'no event named', name, @events, @
 
     setAttribute: (name, value) ->
       # TODO: add support for dynamic constraints


      @_bindConstraints() if @constraints
      # console.log 'new node', @, attributes
      @trigger('init', @) if @events?['init']

    _applyConstraint: (name, expression) ->
      @constraints ?= {}

    added: (child) =>
      # console.log 'added layout', child, @
      if child
        @sendEvent('subview', child)
      @update(null, child)

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