forked from 0x2620/oxjs
remove Ox.Break
This commit is contained in:
parent
4139e171ca
commit
bda90f6b6b
44 changed files with 152 additions and 165 deletions
|
|
@ -228,10 +228,12 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
if (item.id == annotationId) {
|
||||
annotation = item;
|
||||
found = true;
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
found && Ox.Break();
|
||||
if (found) {
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
return annotation;
|
||||
}
|
||||
|
|
@ -243,10 +245,12 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
if (item.id == annotationId) {
|
||||
folder = self.$folder[i];
|
||||
found = true;
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
found && Ox.Break();
|
||||
if (found) {
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
return folder;
|
||||
}
|
||||
|
|
@ -468,7 +472,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
self.deselecting = true;
|
||||
$folder.options({selected: ''});
|
||||
self.deselecting = false;
|
||||
Ox.Break();
|
||||
return false; // break
|
||||
}
|
||||
});
|
||||
scrollToSelected(self.options.layers[index].type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue