Skip to content

Commit

Permalink
fix: use area specific fadeDuration on tooltip is specified (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
techfg committed Apr 10, 2024
1 parent ece26c8 commit f8d6971
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@
isFunction: function (obj) {
return typeof obj === 'function';
},
isNumeric: function (obj) {
return !isNaN(parseFloat(obj));
},
// evaluates "obj", if function, calls it with args
// (todo - update this to handle variable lenght/more than one arg)
ifFunction: function (obj, that, args) {
Expand Down Expand Up @@ -1103,6 +1106,6 @@
};
return me;
})();

console.log('foo3456');
$.mapster.impl.init();
})(jQuery);
4 changes: 2 additions & 2 deletions src/tooltip.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
tooltip.js
Tooltip functionality
Requires areacorners.js
Expand Down Expand Up @@ -273,7 +273,7 @@
options.fadeDuration =
options.fadeDuration ||
(md.options.toolTipFade
? md.options.fadeDuration || areaOpts.fadeDuration
? u.isNumeric(areaOpts.fadeDuration) ? areaOpts.fadeDuration : md.options.fadeDuration
: 0);

target = ad.area
Expand Down

0 comments on commit f8d6971

Please sign in to comment.