mask a problem in timelines view by not throwing a js error

This commit is contained in:
rolux 2011-11-06 22:12:49 +00:00
parent 42c86d9e6c
commit c189c9cd20

View file

@ -297,7 +297,9 @@ pandora.ui.list = function() {
element: Ox.BlockVideoTimeline,
events: {
position: function(event) {
pandora.$ui.videoPreview.options({
// FIXME: we need a way to set the position
// once the video preview has loaded
pandora.$ui.videoPreview && pandora.$ui.videoPreview.options({
position: event.position
});
if (pandora.user.ui.videoPoints[data.id]) {