def trigger_success(data=nil)
      event.success = true
      event.data = data
      event.trigger
    end
def trigger_success(data=nil)
      event.success = true
      event.data = data
      event.trigger
    end
Trigger the success callback function attached to the client event that triggered
 this action. The object passed to this method will be passed as an argument to
 the callback function on the client.