Click event fires twice in a modular baseline application

I am creating a sample modular base application. I load different views using a router. In one of my views, I have a button that has a click event function. The problem is that when I click this button, the click event function is called twice.

Any help would be appreciated !!!!!

below is my code

events: { 'click #hitMe': 'DisplayStudentColl' }, DisplayStudentColl: function(e) { var data = { }; } 
+4
source share
2 answers

There is not much code to work with, but to debug it, you can try to cancel the click event just before setting the click event. If you cannot add the DOM element with the same click, try isolating the elements you are working with.

0
source

All Articles