minor cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-05-03 04:24:26 +04:00
parent 7812d0d40a
commit 099cd917e4

View File

@ -323,7 +323,6 @@ function centerImage(image, mode){
// ...this is to be done in the loader...
// NOTE: negative left or right will contract the ribbon...
// XXX need to adjust ribbon position to compensate for ribbon shift...
function extendRibbon(left, right, ribbon){
ribbon = ribbon == null ?
$('.current.image').closest('.ribbon')
@ -359,7 +358,7 @@ function extendRibbon(left, right, ribbon){
// compensate for the truncation...
// XXX do we need to split this into a separate function?
// ...the rest of the function if pretty generic...
// XXX for some odd reason this breaks in an unstable way when page
// XXX for some odd reason this behaves erratically when the page
// is zoomed...
if(left != 0){
var l = parseFloat(ribbon.css('left'))