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,