avoid double annotation on blur, fixes #3196
This commit is contained in:
parent
cbd948740a
commit
c821817c38
1 changed files with 5 additions and 2 deletions
|
@ -327,6 +327,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
blur: function(data) {
|
||||
if (data && data.id[0] == '_') {
|
||||
changeAnnotation(data);
|
||||
that.triggerEvent('blur');
|
||||
} else {
|
||||
// the video editor will, if it has not received focus,
|
||||
// call blurItem
|
||||
|
@ -410,8 +411,10 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
|
||||
function changeAnnotation(data) {
|
||||
var item = Ox.getObjectById(self.options.items, data.id);
|
||||
item.value = data.value;
|
||||
that.triggerEvent('change', item);
|
||||
if (item.value != data.value) {
|
||||
item.value = data.value;
|
||||
that.triggerEvent('change', item);
|
||||
}
|
||||
}
|
||||
|
||||
function crossesPoint() {
|
||||
|
|
Loading…
Reference in a new issue