handle revert on event handling - use createDelegate
authorAlan Knowles <alan@roojs.com>
Fri, 13 Mar 2020 01:46:39 +0000 (09:46 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 13 Mar 2020 01:46:39 +0000 (09:46 +0800)
Roo/form/ComboNested.js

index 67a9203..05d9127 100644 (file)
@@ -186,8 +186,8 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
             left: (i * lw ) + 'px',
             display : i > 0 ? 'none' : 'block'
         });
-        view.on('selectionchange', this.onSelectChange, this, {list : i });
-        view.on('dblclick', this.onDoubleClick, this, {list : i });
+        view.on('selectionchange', this.onSelectChange.createDelegate(this, {list : i }, true));
+        view.on('dblclick', this.onDoubleClick.createDelegate(this, {list : i }, true));
         //view.on('click', this.onViewClick, this, { list : i });
 
         store.on('beforeload', this.onBeforeLoad, this);