Created
March 19, 2015 08:51
-
-
Save andreascarpello/091054a6873b8edcab8e to your computer and use it in GitHub Desktop.
JQUERY CHECK FUNCTION EXIST
This file contains 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
//http://stackoverflow.com/questions/20027715/jquery-check-function-exist | |
// TRUNCATE TEXT IF OVERFLOW | |
if (typeof $.fn.functionName != 'undefined' && $.isFunction($.fn.functionName)) { | |
$('element').functionName(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment