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
|
|
@ -425,11 +425,11 @@ Ox.VideoEditor = function(options, self) {
|
|||
{key: 'G', action: 'Go to Next Result'},
|
||||
{key: Ox.UI.symbols['return'], action: 'Edit/Submit'},
|
||||
{key: Ox.UI.symbols.escape, action: 'Cancel/Deselect'}
|
||||
], Ox.map(self.options.layers, function(layer, i) {
|
||||
], Ox.filter(self.options.layers.map(function(layer, i) {
|
||||
return layer.editable
|
||||
? {key: i + 1, action: 'Add ' + layer.item}
|
||||
: null;
|
||||
})).forEach(function(shortcut) {
|
||||
}))).forEach(function(shortcut) {
|
||||
self.$keyboardShortcuts.append(
|
||||
$('<div>').css({display: 'table-row'})
|
||||
.append(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue