off by one
This commit is contained in:
parent
ac059ba618
commit
d31ba7a28e
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ Ox.Dialog = function(options, self) {
|
||||||
var buttonsLeft,
|
var buttonsLeft,
|
||||||
buttonsRight,
|
buttonsRight,
|
||||||
index = Ox.indexOf(self.options.buttons, Ox.isEmpty);
|
index = Ox.indexOf(self.options.buttons, Ox.isEmpty);
|
||||||
if (index) {
|
if (index > -1) {
|
||||||
buttonsLeft = self.options.buttons.slice(0, index);
|
buttonsLeft = self.options.buttons.slice(0, index);
|
||||||
buttonsRight = self.options.buttons.slice(index + 1);
|
buttonsRight = self.options.buttons.slice(index + 1);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue