some refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-04-01 15:33:40 +04:00
parent bc867eae80
commit afdcb8f49d

View File

@ -101,40 +101,41 @@ var DataClassPrototype = {
// Data object methods and API...
//
// DATA format:
//
// .current (gid)
// gid of the current image
//
// .base (gid)
// gid of the base ribbon
//
// .order
// List of image gids setting the image order
//
// format:
// [ gid, .. ]
//
// NOTE: this list may contain gids not loaded at the moment, a
// common case for this is when data is cropped.
//
// .ribbon_order
// List of ribbon gids setting the ribbon order.
//
// format:
// [ gid, .. ]
//
// .ribbons
// Dict of ribbons, indexed by ribbon gid, each ribbon is a sparse
// list of image gids.
//
// format:
// { gid: [ gid, .. ], .. }
//
// NOTE: ribbons are sparse...
//
var DataPrototype = {
/****************************************************** Format ***/
//
// .current (gid)
// gid of the current image
//
// .base (gid)
// gid of the base ribbon
//
// .order
// List of image gids setting the image order
//
// format:
// [ gid, .. ]
//
// NOTE: this list may contain gids not loaded at the moment,
// a common case for this is when data is cropped.
//
// .ribbon_order
// List of ribbon gids setting the ribbon order.
//
// format:
// [ gid, .. ]
//
// .ribbons
// Dict of ribbons, indexed by ribbon gid, each ribbon is a
// sparse list of image gids.
//
// format:
// { gid: [ gid, .. ], .. }
//
// NOTE: ribbons are sparse...
//
//
/******************************************************* Utils ***/
// Make a sparse list of image gids...