don't throw JS error when collapsing movies browser before editor has loaded

This commit is contained in:
rolux 2012-06-06 16:22:07 +02:00
parent baad1b949c
commit 3f59138c66

View file

@ -138,7 +138,7 @@ pandora.ui.browser = function() {
if (data.collapsed) {
// fixme: can we do this for timeline and player too?
if (pandora.user.ui.itemView == 'editor') {
pandora.$ui.editor.gainFocus();
pandora.$ui.editor && pandora.$ui.editor.gainFocus();
}
}
if (pandora.user.ui.itemView == 'timeline') {