From 3d6c5480915d33ff8f438879bbaa56f55dbd82d6 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 23 Nov 2016 01:29:19 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-single-image.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/ui (gen4)/features/ui-single-image.js b/ui (gen4)/features/ui-single-image.js index 38c20c93..1358f453 100755 --- a/ui (gen4)/features/ui-single-image.js +++ b/ui (gen4)/features/ui-single-image.js @@ -397,16 +397,15 @@ module.SingleImageView = core.ImageGridFeatures.Feature({ // ribbon mode -- restore original image size... } else { - this.ribbons.preventTransitions() - - // reset image container size... - this.ribbons.viewer.find('.image:not(.clone)') - .each(function(_, img){ - img.style.width = '' - img.style.height = '' - img.style.margin = '' - }) - + this.ribbons + .preventTransitions() + // reset image container size... + .viewer.find('.image:not(.clone)') + .each(function(_, img){ + img.style.width = '' + img.style.height = '' + img.style.margin = '' + }) this // align ribbons... .alignRibbons('now')