From 8050b3f3275b00561c287ad86cb8e4d160b2d896 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 23 Sep 2014 23:58:53 +0200 Subject: [PATCH] Ox.Focus.focused() -> Ox.Focus().focusedElement() --- static/js/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/browser.js b/static/js/browser.js index b7bc552b6..d928cb5f7 100644 --- a/static/js/browser.js +++ b/static/js/browser.js @@ -196,7 +196,7 @@ pandora.ui.browser = function() { // gain focus if we're on page load or if we've just switched // to an item and the not-yet-garbage-collected list still has // focus - if (Ox.Focus.focused() === null || ( + if (!Ox.Focus.focusedElement() || ( pandora.$ui.list && pandora.$ui.list.hasFocus() )) { that.gainFocus();