 
   execute: ->
     if @origin && u.isUndefined(value)
-      value = e.jsonAttr(@origin, @valueAttr)
+      value = e.jsonAttr(@origin, "up-#{@verb}")
 
     unless @layer.isOpen()
       return Promise.resolve()


  emitCloseEvent: ->
    return @layer.emit(
      @buildEvent(@closeEventType),
      callback: @layer.callback(@closeCallbackName),
      log: "Will close #{@layer}"
    )

  emitClosingEvent: ->
    return @layer.emit(
      @buildEvent(@closingEventType),
      callback: @layer.callback(@closingCallbackName),
      log: "Closing #{@layer}"
    )

  emitClosedEvent: (formerParent) ->
    # layer.emit({ ensureBubbles: true }) will automatically emit a second event on document
    # because the layer is detached. We do not want to emit it on the parent layer where users
    # might confuse it with an event for the parent layer itself. Since @layer.element

  constructor: (options) ->
    super(options)

    @verb = options.verb
    @layer = up.layer.get(options)
    @origin = options.origin
    @value = options.value
