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,7 +101,9 @@ var DataClassPrototype = {
// Data object methods and API... // Data object methods and API...
// //
// DATA format: var DataPrototype = {
/****************************************************** Format ***/
// //
// .current (gid) // .current (gid)
// gid of the current image // gid of the current image
@ -115,8 +117,8 @@ var DataClassPrototype = {
// format: // format:
// [ gid, .. ] // [ gid, .. ]
// //
// NOTE: this list may contain gids not loaded at the moment, a // NOTE: this list may contain gids not loaded at the moment,
// common case for this is when data is cropped. // a common case for this is when data is cropped.
// //
// .ribbon_order // .ribbon_order
// List of ribbon gids setting the ribbon order. // List of ribbon gids setting the ribbon order.
@ -125,16 +127,15 @@ var DataClassPrototype = {
// [ gid, .. ] // [ gid, .. ]
// //
// .ribbons // .ribbons
// Dict of ribbons, indexed by ribbon gid, each ribbon is a sparse // Dict of ribbons, indexed by ribbon gid, each ribbon is a
// list of image gids. // sparse list of image gids.
// //
// format: // format:
// { gid: [ gid, .. ], .. } // { gid: [ gid, .. ], .. }
// //
// NOTE: ribbons are sparse... // NOTE: ribbons are sparse...
// //
var DataPrototype = { //
/******************************************************* Utils ***/ /******************************************************* Utils ***/
// Make a sparse list of image gids... // Make a sparse list of image gids...