From 8ee0cb3d7b391b3d52d082ff9bc5b454fe3925d0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 2 Feb 2020 00:47:05 +0300 Subject: [PATCH] found the bug in the upstream code... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 52628fc1..6442e64a 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1288,7 +1288,13 @@ function(spec, callback){ // - .off(..) for some reason does not work... (CONFIRMED) // ...are we off-ing the right source??? // ...one possible cause of this is that .one(..) is actually - // binding a wrapper and not the original function -- TEST + // binding a wrapper and not the original function -- CONFIRMED! + // ...to reproduce: + // var f = function(){ console.log('MOO!!!') } + // ig.modal.client + // .one('moo', f) + // .off('moo', f) + // .trigger('moo') // -> will call f(..) .one('update', function(){ console.log('update:', __v) // XXX BUG? this.off(..) will not work with non-standard events...