no globals

This commit is contained in:
j 2011-10-31 15:15:40 +01:00
parent 234c5fc760
commit 356ab68a12

View file

@ -11,7 +11,7 @@ pandora.ui.clipList = function(videoRatio) {
item: function(data, sort, size) { item: function(data, sort, size) {
size = size || 128; // fixme: is this needed? size = size || 128; // fixme: is this needed?
var ratio, width, height, var ratio, width, height,
format, info, sortKey, url; format, info, sortKey, title, url;
if (!ui.item) { if (!ui.item) {
ratio = data.videoRatio; ratio = data.videoRatio;
width = ratio > fixedRatio ? size : Math.round(size * ratio / fixedRatio); width = ratio > fixedRatio ? size : Math.round(size * ratio / fixedRatio);