use Math.min, not Ox.min

This commit is contained in:
rolux 2013-02-20 14:27:52 +05:30
parent 007608ef5f
commit ef4a0f344a

View file

@ -350,7 +350,7 @@ pandora.ui.statisticsDialog = function() {
top: top + 'px'
})
.appendTo($content);
top += (isDay ? Ox.min([Ox.len(data[mode].day), 30]) : Ox.len(data[mode][key])) * 16 + 32;
top += (isDay ? Math.min(Ox.len(data[mode].day), 30) : Ox.len(data[mode][key])) * 16 + 32;
});
} else if (id == 'locations') {
['continent', 'region', 'country', 'city'].forEach(function(key) {