Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-12-02 15:04:41 +03:00
parent 3491f64c17
commit b4b34a6969

View File

@ -964,7 +964,7 @@ module.Dialogs = core.ImageGridFeatures.Feature({
// .makeContext(name, func[, obj]) // .makeContext(name, func[, obj])
// //
// //
// XXX context of context will not work... // XXX BUGGY...
// XXX move this to browse??? // XXX move this to browse???
browse.items.makeContext = function(name, obj){ browse.items.makeContext = function(name, obj){
// parse args... // parse args...
@ -987,6 +987,13 @@ browse.items.makeContext = function(name, obj){
return f } return f }
// make the handler... // make the handler...
// XXX the idea here is to save the collection to a prop and build a
// custom local context on access, cache it in the make instance
// and it will be used in all the methods...
// ..the reason for this complexity is that on load time we can
// add stuff to the object while in runtime make(..) is a custom
// instance...
// ...this still does not work correctly...
var n = '__'+ name var n = '__'+ name
Object.defineProperty(this, name, { Object.defineProperty(this, name, {
get: function(){ get: function(){