From d31ba7a28ecd2880801097a99d833223ec22f73c Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 10 May 2014 15:09:38 +0200 Subject: [PATCH] off by one --- source/Ox.UI/js/Window/Dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Window/Dialog.js b/source/Ox.UI/js/Window/Dialog.js index c131481e..f3d27299 100644 --- a/source/Ox.UI/js/Window/Dialog.js +++ b/source/Ox.UI/js/Window/Dialog.js @@ -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 {