Use .on instead of .bind, .live and .delegate

Since jQuery 1.7 the .on handler should be used instead of .bind, .live and .delegate as it

“unifies all the ways of attaching events to a document in jQuery — and they’re shorter to type!”
jQuery Blog

.live has been deprecated so it is not even available. .bind and .delegate are still available and some people still prefer there specificity.

See Alfa Jango’s Blog for further explanation.

Fix for jquery click event firing twice

There is an issue in jQuery when sometimes the click event will fire it’s attached method twice. This fix may hep to rectify the issue.