       if parent instanceof Node
         # store references to parent and children
         @parent = parent
-        parent[@name] = @ if @name?
-        parent.subnodes ?= []
+        parent[@name] = @ if @name
         parent.subnodes.push(@)
         parent.trigger('subnodes', @) if parent.events?['subnodes']
 


      # store references subviews
      if parent instanceof View
        parent.subviews ?= []
        parent.subviews.push(@)
        parent.trigger('subviews', @) if parent.events?['subviews']
        parent = parent.sprite

        # console.log 'MemberExpression', name, acorn.stringify n
        return true

    applyConstraint: (name, expression) ->
      @constraints ?= {}
      @constraints[name] = compileScript('return ' + expression).bind(@)
