From 04df218ee9ae4368bf82c8adb4ff096a05408a68 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 2 Aug 2019 16:09:48 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse2.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui (gen4)/lib/widget/browse2.js b/ui (gen4)/lib/widget/browse2.js index c87d07e4..b3ca4eae 100755 --- a/ui (gen4)/lib/widget/browse2.js +++ b/ui (gen4)/lib/widget/browse2.js @@ -5192,6 +5192,9 @@ var HTMLBrowserPrototype = { //* XXX there is a problem with .update() propagation up the nested // dialogs -- we lose context... // ...see .renderContext(..) / .renderFinalize(..) for details... + // There are two routs to make this uniform: + // 1) make some events (update) root-only + // 2) make local updates possible (connect .dom to parent's dom) __expand__: function(){ this.update() }, __collapse__: function(){ this.update() }, /*/ @@ -5201,6 +5204,7 @@ var HTMLBrowserPrototype = { //*/ __select__: updateElemClass('add', 'selected'), __deselect__: updateElemClass('remove', 'selected'), + // XXX would be more logical to update the actual sepcific elements... __disable__: updateElemClass('add', 'disabled', function(){ this.update() }), __enable__: updateElemClass('remove', 'disabled', function(){ this.update() }), __hide__: updateElemClass('add', 'hidden'),