mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0ffcda0e4e
commit
5d1c53593c
@ -1019,21 +1019,8 @@ browse.items.makeSubContext = function(name, obj){
|
|||||||
|
|
||||||
|
|
||||||
// XXX EXPERIMENT...
|
// XXX EXPERIMENT...
|
||||||
// Q: What should we use as context for the getters and callbacks?
|
// XXX Q: should we add an ImageGrid context to make(..)???
|
||||||
// ...there are several ways to go:
|
// ...something like .app for making it generic-ish for example...
|
||||||
// - "this" generic make object + manual binding
|
|
||||||
// + generic, already implemented...
|
|
||||||
// - requires manual binding...
|
|
||||||
// - explicit context in arguments or options
|
|
||||||
// - breaks the general API...
|
|
||||||
// - a context manager API... (REJECTED?)
|
|
||||||
// - complexity...
|
|
||||||
// Q: should we add domain specific fields here too???
|
|
||||||
// ...would be nice to be able to add domains to make(..), e.g.:
|
|
||||||
// make.Domain('ig')
|
|
||||||
// make.ig.attrToggle = function(..){ ... }
|
|
||||||
// the goal is to preserve the make(..) context in sub calls, see
|
|
||||||
// browse.items.Domain(..) implemented below...
|
|
||||||
// XXX Q: do we actually need .Field(..), it does everything make(..)
|
// XXX Q: do we actually need .Field(..), it does everything make(..)
|
||||||
// does already???
|
// does already???
|
||||||
// XXX Q: should title/value args be optional???
|
// XXX Q: should title/value args be optional???
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user