Skip to content

Commit

Permalink
Replace jQuery.type() check with typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbenner committed Feb 21, 2024
1 parent 94ca49e commit 44bd9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ $.fn.powerTip = function(opts, arg) {
}

// handle api method calls on the plugin, e.g. powerTip('hide')
if ($.type(opts) === 'string' && $.powerTip[opts]) {
if (typeof opts === 'string' && $.powerTip[opts]) {
return $.powerTip[opts].call(targetElements, targetElements, arg);
}

Expand Down

0 comments on commit 44bd9c0

Please sign in to comment.