Created
April 30, 2013 23:50
-
-
Save wilsonwc/5492782 to your computer and use it in GitHub Desktop.
Little hack to disable click events for non touch-enabled devices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!Modernizr.touch){ | |
$('a[href^="tel"]').click(function(){return false;}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment