From 1c25bc223ab69f2a1ef427db7ff4950e1b9dcc5d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 26 Dec 2016 03:42:55 +0300 Subject: [PATCH] minor cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-chrome.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/features/ui-chrome.js b/ui (gen4)/features/ui-chrome.js index b6c89fd1..15dff3e8 100755 --- a/ui (gen4)/features/ui-chrome.js +++ b/ui (gen4)/features/ui-chrome.js @@ -168,6 +168,9 @@ var CurrentImageIndicatorActions = actions.Actions({ var locator = this.ribbons.getRibbonLocator() var shifting_ribbon = false + // NOTE: we will update only the attrs that need to be updated... + var css = {} + if(ribbon_set.length == 0){ return } @@ -217,7 +220,7 @@ var CurrentImageIndicatorActions = actions.Actions({ // add marker to current ribbon... } else { - shifting_ribbon = true + css.display = '' marker // NOTE: this will prevent animating the marker // in odd ways when switching ribbons... @@ -226,9 +229,6 @@ var CurrentImageIndicatorActions = actions.Actions({ } } - // NOTE: we will update only the attrs that need to be updated... - var css = shifting_ribbon ? { display: '' } : {} - var w = cur.outerWidth(true) var h = cur.outerHeight(true)