Fix: use this.value

This commit is contained in:
eight 2017-11-09 06:22:55 +08:00
parent 191603ae01
commit 9d1b0884e5

View File

@ -224,8 +224,8 @@ function createAppliesToLineWidget(cm) {
value: value,
textContent: label
})),
onchange(e) {
applyChange(apply.type, e.target.value);
onchange() {
applyChange(apply.type, this.value);
}
});
typeInput.value = apply.type.text;
@ -233,8 +233,8 @@ function createAppliesToLineWidget(cm) {
tag: 'input',
className: 'applies-value',
value: apply.value.text,
oninput(e) {
debounce(applyChange, THROTTLE_DELAY, apply.value, e.target.value);
oninput() {
debounce(applyChange, THROTTLE_DELAY, apply.value, this.value);
},
onfocus: updateRegexpTest
});