we can only update view if it exists. switch otherwise
This commit is contained in:
parent
64b8967ded
commit
94fc4fbe7a
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ pandora.ui.info = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function(data) {
|
click: function(data) {
|
||||||
if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1) {
|
if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1 && pandora.$ui[ui.itemView]) {
|
||||||
pandora.$ui[ui.itemView].options({
|
pandora.$ui[ui.itemView].options({
|
||||||
position: data.position
|
position: data.position
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue