mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f6acb36370
commit
1c25bc223a
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user