experimenting....

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-25 10:28:50 +03:00
parent a0dab54f88
commit 09811a5732

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,