Commit 0e29827d1c8682323f044b8cac127accc59dfaf4
1 parent
fffed3e4
Exists in
master
and in
80 other branches
set click listener on menu only once (cf. #9510)
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
js/app/views/ExplorerUI.js
@@ -544,7 +544,10 @@ Ext.define('amdaUI.ExplorerUI', { | @@ -544,7 +544,10 @@ Ext.define('amdaUI.ExplorerUI', { | ||
544 | menu.removeListener('click',onRecordClick,this); | 544 | menu.removeListener('click',onRecordClick,this); |
545 | }; | 545 | }; |
546 | 546 | ||
547 | - menu.addListener('click',onRecordClick,rec); | 547 | + if (!menu.hasListener('click')) { |
548 | + // set click listener on menu only once (cf. #9510) | ||
549 | + menu.addListener('click',onRecordClick,rec); | ||
550 | + } | ||
548 | // then show menu | 551 | // then show menu |
549 | menu.showAt(e.getXY()); | 552 | menu.showAt(e.getXY()); |
550 | } | 553 | } |