mirror of
https://github.com/flynx/ImageGrid.git
synced 2026-01-10 04:11:10 +00:00
some tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f482dcb37b
commit
2ceadcf68a
@ -130,12 +130,17 @@ function loadJSON(path){
|
|||||||
// - error <err> - an error occurred...
|
// - error <err> - an error occurred...
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
// NOTE: this is fairly generic and does not care about the type of data
|
||||||
|
// or it's format as long as it's JSON and the file names comply
|
||||||
|
// with the scheme above...
|
||||||
|
//
|
||||||
|
// XXX add support for sharding...
|
||||||
// XXX test with:
|
// XXX test with:
|
||||||
// requirejs(['file'],
|
// requirejs(['file'],
|
||||||
// function(m){
|
// function(m){
|
||||||
// f = m.loadIndex("L:/mnt/hdd15 (photo)/NTFS1/media/img/others") })
|
// f = m.loadIndex("L:/mnt/hdd15 (photo)/NTFS1/media/img/others") })
|
||||||
// .done(function(d){ console.log(d) })
|
// .done(function(d){ console.log(d) })
|
||||||
// XXX need to do better error handling...
|
// XXX need to do better error handling -- stop when an error is not recoverable...
|
||||||
// XXX a bit overcomplicated (???), see if this can be split into more generic
|
// XXX a bit overcomplicated (???), see if this can be split into more generic
|
||||||
// sections...
|
// sections...
|
||||||
var loadIndex =
|
var loadIndex =
|
||||||
|
|||||||
@ -607,6 +607,8 @@ module.ImagesPrototype = {
|
|||||||
}
|
}
|
||||||
return this
|
return this
|
||||||
},
|
},
|
||||||
|
// XXX this is really odd: renaming this to 'toJSON' breaks JavasCript
|
||||||
|
// making chrome/node just say: "<error>" and a filename...
|
||||||
dumpJSON: function(data){
|
dumpJSON: function(data){
|
||||||
return JSON.parse(JSON.stringify(this))
|
return JSON.parse(JSON.stringify(this))
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user