diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index e57f2162..6314db24 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -964,7 +964,7 @@ module.Dialogs = core.ImageGridFeatures.Feature({ // .makeContext(name, func[, obj]) // // -// XXX context of context will not work... +// XXX BUGGY... // XXX move this to browse??? browse.items.makeContext = function(name, obj){ // parse args... @@ -987,6 +987,13 @@ browse.items.makeContext = function(name, obj){ return f } // 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 Object.defineProperty(this, name, { get: function(){