瀏覽代碼

Allow explicit destroyInvite() call with no event

tags/v0.1.2^2
Paul Holden 7 年之前
父節點
當前提交
ad464dd352
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. +6
    -4
      src/client/ui/templates/party/party.js

+ 6
- 4
src/client/ui/templates/party/party.js 查看文件

@@ -179,10 +179,12 @@ define([
},

destroyInvite: function(e) {
if ($(e.target).hasClass('btnAccept'))
this.acceptInvite();
else
this.declineInvite();
if (e) {
if ($(e.target).hasClass('btnAccept'))
this.acceptInvite();
else
this.declineInvite();
}

this.invite.el.remove();
this.invite = null;


Loading…
取消
儲存