Compare commits
2 Commits
7845185212
...
4e7018efd6
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e7018efd6 | |||
| 09811a5732 |
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user