minor cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-12-26 03:42:55 +03:00
parent f6acb36370
commit 1c25bc223a

View File

@ -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)