Compare commits

...

2 Commits

Author SHA1 Message Date
4e7018efd6 Merge branch 'grid-n-view' of ssh://flynx.chas.ch/olyakonstantin/gallery into grid-n-view 2023-08-25 10:28:58 +03:00
09811a5732 experimenting....
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-08-25 10:28:50 +03:00

View File

@ -1311,6 +1311,29 @@ var Gallery = {
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
var ContextProto = {
dom: undefined,
parent: undefined,
constructors: {},
end: function(){
return this.parent },
setup: function(){
return this },
}
var Context = function(name, constructors, extend={}){
var obj = this instanceof Context ?
obj
: Reflect.construct(
Function,
['return this.setup ? this.setup(...arguments) : this'],
Context)
return obj }
var Toolbar = {
dom: undefined,
gallery: undefined,