forked from 0x2620/oxjs
use Ox.break
This commit is contained in:
parent
3d4a79b6a2
commit
04784630d3
42 changed files with 117 additions and 118 deletions
|
|
@ -188,10 +188,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
if (item.id == annotationId) {
|
||||
annotation = item;
|
||||
found = true;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return !found;
|
||||
found && Ox.break();
|
||||
});
|
||||
return annotation;
|
||||
}
|
||||
|
|
@ -203,10 +203,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
if (item.id == annotationId) {
|
||||
folder = self.$folder[i];
|
||||
found = true;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
return !found;
|
||||
found && Ox.break();
|
||||
});
|
||||
return folder;
|
||||
}
|
||||
|
|
@ -427,7 +427,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
self.deselecting = true;
|
||||
$folder.options({selected: ''});
|
||||
self.deselecting = false;
|
||||
return false;
|
||||
Ox.break();
|
||||
}
|
||||
});
|
||||
scrollToSelected(self.options.layers[index].type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue