From b9d310724eac7bbb059221c2fb67b8750d0a9978 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 30 Nov 2019 04:56:55 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 2acd6e75..10284b46 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1124,16 +1124,15 @@ function(title, value, options){ // ...not sure how critical this is at this point... // XXX move this to browse??? browse.items.Domain = function(name, obj){ - var that = this var sub = function(){ - return that(...arguments) } - sub.__proto__ = that + return this(...arguments) } + sub.__proto__ = this obj && Object.assign(sub, obj) - return that[name] = sub } + return (this[name] = sub) } -browse.items.Domain('ig', { +browse.items.Domain('form', { attrToggle: function(){ // XXX },