Skip to content
Advertisement

Tag: jshint

Pass event to another function

Now with above code I am getting JShint error: “Dont make functions within loop”. To resolve above error I am doing this now: Is this fine? If yes then how can I pass event from click event to clickHandler and then to doClick function? Answer No, it’s not fine. The problem in creating functions inside a loop is that you

Advertisement