From 09811a57328055f0db48894b2126a78871188685 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 25 Aug 2023 10:28:50 +0300 Subject: [PATCH] experimenting.... Signed-off-by: Alex A. Naanou --- grid-n-view.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/grid-n-view.js b/grid-n-view.js index d05a2af..c4d5151 100644 --- a/grid-n-view.js +++ b/grid-n-view.js @@ -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,