1
0
Fork 0
forked from 0x2620/oxjs

use [].slice, not Ox.sub

This commit is contained in:
rolux 2012-05-24 11:02:59 +02:00
commit f990f3b857
7 changed files with 10 additions and 10 deletions

View file

@ -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;