closest can returns itself as well

このコミットが含まれているのは:
taehoon 2019-07-23 20:59:37 -04:00
コミット 1cefaa8446
1個のファイルの変更1行の追加2行の削除

ファイルの表示

@ -322,8 +322,7 @@ const Status = {
this.error = undefined
},
linkClicked (event) {
let { target } = event
target = target.tagName === 'A' ? target : target.closest('.status-content a')
const target = event.target.closest('.status-content a')
if (target) {
if (target.className.match(/mention/)) {
const href = target.href