mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor typo fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bd8e266f46
commit
0f66a8f2ad
@ -127,7 +127,7 @@ var loadFileBookmarks = makeFileLoader(
|
|||||||
CONFIG.bookmarks_file,
|
CONFIG.bookmarks_file,
|
||||||
[[], {}],
|
[[], {}],
|
||||||
function(data){
|
function(data){
|
||||||
BOOKMARKS = populateSparceGIDList(data[0])
|
BOOKMARKS = populateSparseGIDList(data[0])
|
||||||
BOOKMARKS_DATA = data[1]
|
BOOKMARKS_DATA = data[1]
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ function setupBookmarks(viewer){
|
|||||||
|
|
||||||
return viewer
|
return viewer
|
||||||
.on('sortedImages', function(){
|
.on('sortedImages', function(){
|
||||||
BOOKMARKS = populateSparceGIDList(BOOKMARKS)
|
BOOKMARKS = populateSparseGIDList(BOOKMARKS)
|
||||||
bookmarksUpdated()
|
bookmarksUpdated()
|
||||||
})
|
})
|
||||||
.on('horizontalShiftedImage', function(evt, gid, direction, from, to){
|
.on('horizontalShiftedImage', function(evt, gid, direction, from, to){
|
||||||
|
|||||||
@ -613,7 +613,7 @@ function binSearch(target, lst, check, return_position, get){
|
|||||||
//
|
//
|
||||||
// NOTE: the resulting list will always be sorted...
|
// NOTE: the resulting list will always be sorted...
|
||||||
// NOTE: this will skip all elements not in order
|
// NOTE: this will skip all elements not in order
|
||||||
function populateSparceGIDList(gids, target, data){
|
function populateSparseGIDList(gids, target, data){
|
||||||
data = data == null ? DATA : data
|
data = data == null ? DATA : data
|
||||||
var order = data.order
|
var order = data.order
|
||||||
var res = target == null ? [] : target
|
var res = target == null ? [] : target
|
||||||
@ -669,7 +669,7 @@ function compactSparceList(lst){
|
|||||||
//
|
//
|
||||||
// NOTE: this has no side-effects on the original gids list...
|
// NOTE: this has no side-effects on the original gids list...
|
||||||
function fastSortGIDsByOrder(gids, data){
|
function fastSortGIDsByOrder(gids, data){
|
||||||
return compactSparceList(populateSparceGIDList(gids, data))
|
return compactSparceList(populateSparseGIDList(gids, data))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -128,9 +128,9 @@ function makeUnmarkedSparseLister(get_marked){
|
|||||||
var res = mode == 'all' ?
|
var res = mode == 'all' ?
|
||||||
DATA.order.slice()
|
DATA.order.slice()
|
||||||
: mode == 'ribbon' ?
|
: mode == 'ribbon' ?
|
||||||
populateSparceGIDList(getRibbonGIDs())
|
populateSparseGIDList(getRibbonGIDs())
|
||||||
: typeof(mode) == typeof(123) ?
|
: typeof(mode) == typeof(123) ?
|
||||||
populateSparceGIDList(getRibbonGIDs(mode))
|
populateSparseGIDList(getRibbonGIDs(mode))
|
||||||
: mode
|
: mode
|
||||||
|
|
||||||
// for ribbon modes, remove non-ribbon marks...
|
// for ribbon modes, remove non-ribbon marks...
|
||||||
@ -748,7 +748,7 @@ var loadFileMarks = makeFileLoader(
|
|||||||
CONFIG.marked_file,
|
CONFIG.marked_file,
|
||||||
[],
|
[],
|
||||||
function(data){
|
function(data){
|
||||||
MARKED = populateSparceGIDList(data)
|
MARKED = populateSparseGIDList(data)
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
'marksLoaded')
|
'marksLoaded')
|
||||||
@ -797,7 +797,7 @@ function setupMarks(viewer){
|
|||||||
|
|
||||||
return viewer
|
return viewer
|
||||||
.on('sortedImages', function(){
|
.on('sortedImages', function(){
|
||||||
MARKED = populateSparceGIDList(MARKED)
|
MARKED = populateSparseGIDList(MARKED)
|
||||||
marksUpdated()
|
marksUpdated()
|
||||||
})
|
})
|
||||||
.on('horizontalShiftedImage', function(evt, gid, direction, from, to){
|
.on('horizontalShiftedImage', function(evt, gid, direction, from, to){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user