mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
another bug fixed...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c399d4299e
commit
1e67e9000e
@ -2051,8 +2051,6 @@ var DataPrototype = {
|
|||||||
// similar to .getImageOrder(..) default but different form
|
// similar to .getImageOrder(..) default but different form
|
||||||
// .getImage(..)
|
// .getImage(..)
|
||||||
// NOTE: if no target is given this will assume the current image.
|
// NOTE: if no target is given this will assume the current image.
|
||||||
//
|
|
||||||
// XXX do .eachImageList(..)
|
|
||||||
split: function(target){
|
split: function(target){
|
||||||
if(arguments.length > 1){
|
if(arguments.length > 1){
|
||||||
target = Array.apply(null, arguments)
|
target = Array.apply(null, arguments)
|
||||||
@ -2073,9 +2071,10 @@ var DataPrototype = {
|
|||||||
n.base = tail.base
|
n.base = tail.base
|
||||||
n.ribbon_order = tail.ribbon_order.slice()
|
n.ribbon_order = tail.ribbon_order.slice()
|
||||||
n.order = tail.order.splice(0, i)
|
n.order = tail.order.splice(0, i)
|
||||||
for(var k in tail.ribbons){
|
tail.eachImageList(function(lst, key, set){
|
||||||
n.ribbons[k] = tail.ribbons[k].splice(0, i)
|
n[set] = n[set] || {}
|
||||||
}
|
n[set][key] = lst.splice(0, i)
|
||||||
|
})
|
||||||
n.current = n.order.indexOf(tail.current) >= 0 ? tail.current : n.order[0]
|
n.current = n.order.indexOf(tail.current) >= 0 ? tail.current : n.order[0]
|
||||||
|
|
||||||
res.push(n)
|
res.push(n)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user