Skip to content

Commit

Permalink
Replace jQuery.isFunction() checks with typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbenner committed Feb 21, 2024
1 parent 02b4e71 commit fae3add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ function getTooltipContent(element) {
content;

if (tipText) {
if ($.isFunction(tipText)) {
if (typeof tipText === 'function') {
tipText = tipText.call(element[0]);
}
content = tipText;
} else if (tipObject) {
if ($.isFunction(tipObject)) {
if (typeof tipObject === 'function') {
tipObject = tipObject.call(element[0]);
}
if (tipObject.length > 0) {
Expand Down

0 comments on commit fae3add

Please sign in to comment.