Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).on("click touchstart", ".someClass", function() {
- // code goes here
- });
- $(".someClass").onClick(function () {
- // code goes here
- });
- Object.prototype.onClick = function() {
- $(document).on('click touchstart', this, arguments);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement