mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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 locator = this.ribbons.getRibbonLocator()
|
||||||
var shifting_ribbon = false
|
var shifting_ribbon = false
|
||||||
|
|
||||||
|
// NOTE: we will update only the attrs that need to be updated...
|
||||||
|
var css = {}
|
||||||
|
|
||||||
if(ribbon_set.length == 0){
|
if(ribbon_set.length == 0){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -217,7 +220,7 @@ var CurrentImageIndicatorActions = actions.Actions({
|
|||||||
|
|
||||||
// add marker to current ribbon...
|
// add marker to current ribbon...
|
||||||
} else {
|
} else {
|
||||||
shifting_ribbon = true
|
css.display = ''
|
||||||
marker
|
marker
|
||||||
// NOTE: this will prevent animating the marker
|
// NOTE: this will prevent animating the marker
|
||||||
// in odd ways when switching ribbons...
|
// 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 w = cur.outerWidth(true)
|
||||||
var h = cur.outerHeight(true)
|
var h = cur.outerHeight(true)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user