avoid error on blur

This commit is contained in:
j 2020-09-21 14:02:57 +02:00
parent 290afaf332
commit 396fac63c0

View file

@ -325,7 +325,7 @@ Ox.AnnotationFolder = function(options, self) {
that.triggerEvent('add', {value: data.value || ''}); that.triggerEvent('add', {value: data.value || ''});
}, },
blur: function(data) { blur: function(data) {
if (data && data.id[0] == '_') { if (data && data.id && data.id[0] == '_') {
changeAnnotation(data); changeAnnotation(data);
that.triggerEvent('blur'); that.triggerEvent('blur');
} else { } else {