fix '.add-applies-to' click listener

This commit is contained in:
tophf 2018-01-06 09:31:37 +03:00
parent 42bd77ec17
commit 4a7c675d06

View File

@ -73,7 +73,7 @@ function createAppliesToLineWidget(cm) {
}, },
'.add-applies-to': (item, apply) => { '.add-applies-to': (item, apply) => {
const applies = this.closest('.applies-to').__applies; const applies = item.closest('.applies-to').__applies;
const i = applies.indexOf(apply); const i = applies.indexOf(apply);
const pos = apply.mark.find().to; const pos = apply.mark.find().to;
const text = `, ${apply.type.text}("")`; const text = `, ${apply.type.text}("")`;