mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
updated docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f936060d3e
commit
f28acbc09d
12
ui/data4.js
12
ui/data4.js
@ -131,6 +131,7 @@ var DataClassPrototype = {
|
|||||||
// NOTE: ribbons are sparse...
|
// NOTE: ribbons are sparse...
|
||||||
//
|
//
|
||||||
var DataPrototype = {
|
var DataPrototype = {
|
||||||
|
// Reset the state to empty...
|
||||||
_reset: function(){
|
_reset: function(){
|
||||||
this.base = null
|
this.base = null
|
||||||
this.current = null
|
this.current = null
|
||||||
@ -139,12 +140,21 @@ var DataPrototype = {
|
|||||||
this.ribbons = {}
|
this.ribbons = {}
|
||||||
|
|
||||||
this._gid_cache = []
|
this._gid_cache = []
|
||||||
|
|
||||||
|
return this
|
||||||
},
|
},
|
||||||
|
|
||||||
// util methods...
|
// util methods...
|
||||||
|
|
||||||
|
// Compact a sparse list...
|
||||||
compactSparseList: function(list){
|
compactSparseList: function(list){
|
||||||
return list.filter(function(){return true})
|
return list.filter(function(){return true})
|
||||||
},
|
},
|
||||||
|
// Make a sparse list of image gids...
|
||||||
|
//
|
||||||
|
// This will use this.order as the base for ordering the list.
|
||||||
|
//
|
||||||
|
// If target is given then it will get updated with the input gids.
|
||||||
makeSparseImages: function(gids, target){
|
makeSparseImages: function(gids, target){
|
||||||
target = target == null ? [] : target
|
target = target == null ? [] : target
|
||||||
order = this.order
|
order = this.order
|
||||||
@ -158,6 +168,8 @@ var DataPrototype = {
|
|||||||
|
|
||||||
return target
|
return target
|
||||||
},
|
},
|
||||||
|
// Generate a uniqie GID...
|
||||||
|
//
|
||||||
// XXX generate a real gid...
|
// XXX generate a real gid...
|
||||||
newGid: function(prefix){
|
newGid: function(prefix){
|
||||||
prefix = prefix == null ? 'G' : prefix
|
prefix = prefix == null ? 'G' : prefix
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user