forked from 0x2620/oxjs
less obscure Ox.map
This commit is contained in:
parent
33390069b9
commit
12cf77cef5
21 changed files with 125 additions and 101 deletions
|
|
@ -328,7 +328,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
}
|
||||
|
||||
function getAnnotations() {
|
||||
return Ox.map(self.options.items, function(item) {
|
||||
return Ox.filter(self.options.items, function(item) {
|
||||
return self.editing && item.id == self.options.selected || (
|
||||
(
|
||||
self.options.range == 'all' || (
|
||||
|
|
@ -344,7 +344,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
self.options.users == 'all'
|
||||
|| self.options.users.indexOf(item.user) > -1
|
||||
)
|
||||
) ? item : null;
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue