Kwo.Poll = {

  "onCallback": function(res) {
    if (Kwo.hasError(res)) return Kwo.error(res);
    Kwo.exec("/poll/poll.result", {id: res["result"]["id"]},
             {container: this});
  },

  "onSubmit": function(args) {
    Kwo.exec("/poll/poll.vote", args,
             {callback: Kwo.Poll.onCallback.bind($(args))});
  }

};