Fix raw tag editor

This commit is contained in:
Tom MacWright
2016-09-03 18:54:37 -04:00
parent aebf0c14e1
commit f0145a8b56
+3 -3
View File
@@ -209,19 +209,19 @@ export function RawTagEditor(context) {
tag[kNew] = d.value;
d.key = kNew; // Maintain DOM identity through the subsequent update.
this.value = kNew;
event.call('change', tag);
event.call('change', this, tag);
}
function valueChange(d) {
var tag = {};
tag[d.key] = this.value;
event.call('change', tag);
event.call('change', this, tag);
}
function removeTag(d) {
var tag = {};
tag[d.key] = undefined;
event.call('change', tag);
event.call('change', this, tag);
d3.select(this.parentNode).remove();
}