lundi 25 juillet 2016

Best OOP practice using jQuery event handler

Let's say that I have something like this:

$('#selector1').on('change', handler);
$('#selector2').on('change', handler);

function handler() {

}

What is the best way to wrap this with class?

Aucun commentaire:

Enregistrer un commentaire