forked from 0x2620/oxjs
use [].slice, not Ox.sub
This commit is contained in:
parent
915e98f829
commit
f990f3b857
7 changed files with 10 additions and 10 deletions
|
|
@ -498,8 +498,8 @@ Ox.Dialog = function(options, self) {
|
|||
buttonsRight,
|
||||
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);
|
||||
buttonsLeft = self.options.buttons.slice(0, index);
|
||||
buttonsRight = self.options.buttons.slice(index + 1);
|
||||
} else {
|
||||
buttonsLeft = [];
|
||||
buttonsRight = self.options.buttons;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue