mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
notes and minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
eae2e6feb7
commit
91cd10fada
@ -1290,7 +1290,6 @@ function(get_state, set_state, unset_state, default_item, multi, options){
|
|||||||
this.constructor = toggler.Toggler })}
|
this.constructor = toggler.Toggler })}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
// Base Browser...
|
// Base Browser...
|
||||||
|
|
||||||
@ -3186,15 +3185,18 @@ var BaseBrowserPrototype = {
|
|||||||
// - from/to/around/count support...
|
// - from/to/around/count support...
|
||||||
// - ability to render separate items/sub-trees or lists of items...
|
// - ability to render separate items/sub-trees or lists of items...
|
||||||
// ...pass the list to .walk(..), i.e. .walk(list/query, ...)
|
// ...pass the list to .walk(..), i.e. .walk(list/query, ...)
|
||||||
|
// XXX doc...
|
||||||
render2: function(options, renderer){
|
render2: function(options, renderer){
|
||||||
var that = this
|
var that = this
|
||||||
|
|
||||||
// XXX args parsing...
|
// XXX args parsing...
|
||||||
// XXX
|
// XXX
|
||||||
|
|
||||||
// NOTE: base_index and base_path only apply to the 'items'
|
|
||||||
// section...
|
|
||||||
var args = [...arguments]
|
var args = [...arguments]
|
||||||
|
// XXX
|
||||||
|
var list
|
||||||
|
var filter
|
||||||
|
|
||||||
|
// NOTE: these only apply to the 'items' section...
|
||||||
var base_path = args[args.length-1] instanceof Array ?
|
var base_path = args[args.length-1] instanceof Array ?
|
||||||
args.pop()
|
args.pop()
|
||||||
: []
|
: []
|
||||||
@ -3236,12 +3238,6 @@ var BaseBrowserPrototype = {
|
|||||||
return ((render.root === this && section instanceof Array) ?
|
return ((render.root === this && section instanceof Array) ?
|
||||||
// render list of sections...
|
// render list of sections...
|
||||||
//
|
//
|
||||||
// format:
|
|
||||||
// {
|
|
||||||
// <section-name>: [ <item>, ... ],
|
|
||||||
// ...
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// NOTE: we will only render the section list on the top
|
// NOTE: we will only render the section list on the top
|
||||||
// level on all lower levels only the specific section
|
// level on all lower levels only the specific section
|
||||||
// is rendered for all nested browsers...
|
// is rendered for all nested browsers...
|
||||||
@ -3264,6 +3260,7 @@ var BaseBrowserPrototype = {
|
|||||||
|
|
||||||
// render single section...
|
// render single section...
|
||||||
: this.walk(
|
: this.walk(
|
||||||
|
...(list || []),
|
||||||
function(e, i, p, children){
|
function(e, i, p, children){
|
||||||
// index...
|
// index...
|
||||||
// NOTE: since we let the nested browsers render sections
|
// NOTE: since we let the nested browsers render sections
|
||||||
@ -3304,9 +3301,9 @@ var BaseBrowserPrototype = {
|
|||||||
// XXX
|
// XXX
|
||||||
false ?
|
false ?
|
||||||
[]
|
[]
|
||||||
|
|
||||||
// XXX need to maintain topology...
|
|
||||||
|
|
||||||
|
// XXX need to maintain topology -- headless nested...
|
||||||
|
|
||||||
// inlined...
|
// inlined...
|
||||||
: (e instanceof BaseBrowser || e instanceof Array) ?
|
: (e instanceof BaseBrowser || e instanceof Array) ?
|
||||||
render.inline(e,
|
render.inline(e,
|
||||||
@ -3857,7 +3854,6 @@ object.Constructor('BaseBrowser',
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
var KEYBOARD_CONFIG =
|
var KEYBOARD_CONFIG =
|
||||||
@ -4017,7 +4013,6 @@ object.Constructor('HTMLItem',
|
|||||||
HTMLItemPrototype)
|
HTMLItemPrototype)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
// Helpers...
|
// Helpers...
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user