Curtis Timson

Front End & .NET Developer

Month

May 2014

Namespacing jQuery event handlers

If we are to attach 2 or more event handlers to an element these will become stacked and run linear in the order they were attached. For example: $(“.foo”).on(“click”, function(e){ console.log(“bar”); }); $(“.foo”).on(“click”, function(e){ console.log(“baz”); }); If .foo is then… Continue Reading →

© 2017 Curtis Timson — Powered by WordPress

Theme by Anders NorenUp ↑