This is an automated email from the ASF dual-hosted git repository.

svenmeier pushed a commit to branch feature/WICKET-6681-vanilla-wicket-ajax
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit 50d06e2e9bc2fc39f93a3aa215df10de6d6430ee
Author: Sven Meier <svenme...@apache.org>
AuthorDate: Tue Jul 2 09:01:45 2019 +0200

    WICKET-6681 removeEventListener needs listener
---
 .../java/org/apache/wicket/devutils/debugbar/wicket-debugbar.js   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/wicket-debugbar.js
 
b/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/wicket-debugbar.js
index da65e0f..151ec70 100644
--- 
a/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/wicket-debugbar.js
+++ 
b/wicket-devutils/src/main/java/org/apache/wicket/devutils/debugbar/wicket-debugbar.js
@@ -74,10 +74,12 @@
 
                        var el = Wicket.$('wicketDebugBar');
                        el.classList.add('wicketDebugBarError')
-                       el.addEventListener('animationend', function() {
-                               el.removeEventListener('animationend');
+                       
+                       var listener = function() {
+                               el.removeEventListener('animationend', 
listener);
                                el.classList.remove('wicketDebugBarError');
-                       });
+                       };
+                       el.addEventListener('animationend', listener);          
        
                };
        };
 })();

Reply via email to