off by one

This commit is contained in:
rolux 2014-05-10 15:09:38 +02:00 committed by j
parent ac059ba618
commit d31ba7a28e

View file

@ -543,7 +543,7 @@ Ox.Dialog = function(options, self) {
var buttonsLeft,
buttonsRight,
index = Ox.indexOf(self.options.buttons, Ox.isEmpty);
if (index) {
if (index > -1) {
buttonsLeft = self.options.buttons.slice(0, index);
buttonsRight = self.options.buttons.slice(index + 1);
} else {