Ox.Focus.focused() -> Ox.Focus().focusedElement()

This commit is contained in:
rolux 2014-09-23 23:58:53 +02:00
parent 48d88e58ad
commit 8050b3f327

View File

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