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
|
|
@ -496,9 +496,7 @@ Ox.Dialog = function(options, self) {
|
|||
function setButtons() {
|
||||
var buttonsLeft,
|
||||
buttonsRight,
|
||||
index = Ox.map(self.options.buttons, function(v, i) {
|
||||
return Ox.isEmpty(v) ? i : null;
|
||||
})[0];
|
||||
index = Ox.indexOf(self.options.buttons, Ox.isEmpty);
|
||||
if (index) {
|
||||
buttonsLeft = Ox.sub(self.options.buttons, 0, index);
|
||||
buttonsRight = Ox.sub(self.options.buttons, index + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue