Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
louisameline committed Jun 5, 2020
1 parent 57423dc commit 0daaeff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
17 changes: 8 additions & 9 deletions dist/js/tooltipster.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var defaults = {
hasTransitions: transitionSupport(),
IE: false,
// don't set manually, it will be updated by a build task after the manifest
semVer: '4.2.7',
semVer: '4.2.8',
window: win
},
core = function() {
Expand Down Expand Up @@ -3526,19 +3526,18 @@ $.tooltipster._plugin({
self.__options.distance = [self.__options.distance];
}
if (self.__options.distance.length < 4) {

if (self.__options.distance[1] === undefined) self.__options.distance[1] = self.__options.distance[0];
if (self.__options.distance[2] === undefined) self.__options.distance[2] = self.__options.distance[0];
if (self.__options.distance[3] === undefined) self.__options.distance[3] = self.__options.distance[1];

self.__options.distance = {
top: self.__options.distance[0],
right: self.__options.distance[1],
bottom: self.__options.distance[2],
left: self.__options.distance[3]
};
}

self.__options.distance = {
top: self.__options.distance[0],
right: self.__options.distance[1],
bottom: self.__options.distance[2],
left: self.__options.distance[3]
};

// let's transform:
// 'top' into ['top', 'bottom', 'right', 'left']
// 'right' into ['right', 'left', 'top', 'bottom']
Expand Down
4 changes: 2 additions & 2 deletions dist/js/tooltipster.bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/tooltipster.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var defaults = {
hasTransitions: transitionSupport(),
IE: false,
// don't set manually, it will be updated by a build task after the manifest
semVer: '4.2.7',
semVer: '4.2.8',
window: win
},
core = function() {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tooltipster.main.min.js

Large diffs are not rendered by default.

0 comments on commit 0daaeff

Please sign in to comment.