Skip to content

Commit b3b72ce

Browse files
authored
Merge pull request #744 from cedricvidal/master
upgraded grunt-umd to 3.0.0 in order to fix CommonJS false positive detection
2 parents bb575f0 + a19c5b9 commit b3b72ce

File tree

8 files changed

+31
-27
lines changed

8 files changed

+31
-27
lines changed

dist/css/tooltipster.bundle.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
.tooltipster-update-scale {
230230
animation: tooltipster-scaling 600ms;
231231
}
232-
232+
233233
/**
234234
* DEFAULT STYLE OF THE SIDETIP PLUGIN
235235
*

dist/js/plugins/tooltipster/SVG/tooltipster-SVG.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
(function (root, factory) {
2+
if (root === undefined && window !== undefined) root = window;
23
if (typeof define === 'function' && define.amd) {
34
// AMD. Register as an anonymous module unless amdModuleId is set
45
define(["tooltipster"], function (a0) {
56
return (factory(a0));
67
});
7-
} else if (typeof exports === 'object') {
8+
} else if (typeof module === 'object' && module.exports) {
89
// Node. Does not work with strict CommonJS, but
910
// only CommonJS-like environments that support module.exports,
1011
// like Node.
1112
module.exports = factory(require("tooltipster"));
1213
} else {
13-
factory(jQuery);
14+
factory(root["jQuery"]);
1415
}
1516
}(this, function ($) {
1617

1718
(function (root, factory) {
19+
if (root === undefined && window !== undefined) root = window;
1820
if (typeof define === 'function' && define.amd) {
1921
// AMD. Register as an anonymous module unless amdModuleId is set
2022
define(["jquery"], function (a0) {
2123
return (factory(a0));
2224
});
23-
} else if (typeof exports === 'object') {
25+
} else if (typeof module === 'object' && module.exports) {
2426
// Node. Does not work with strict CommonJS, but
2527
// only CommonJS-like environments that support module.exports,
2628
// like Node.
2729
module.exports = factory(require("jquery"));
2830
} else {
29-
factory(jQuery);
31+
factory(root["jQuery"]);
3032
}
3133
}(this, function ($) {
3234

dist/js/plugins/tooltipster/SVG/tooltipster-SVG.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tooltipster.bundle.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
/**
2-
* tooltipster http://iamceege.github.io/tooltipster/
3-
* A rockin' custom tooltip jQuery plugin
4-
* Developed by Caleb Jacob and Louis Ameline
5-
* MIT license
6-
*/
1+
/**
2+
* tooltipster http://iamceege.github.io/tooltipster/
3+
* A rockin' custom tooltip jQuery plugin
4+
* Developed by Caleb Jacob and Louis Ameline
5+
* MIT license
6+
*/
77
(function (root, factory) {
8+
if (root === undefined && window !== undefined) root = window;
89
if (typeof define === 'function' && define.amd) {
910
// AMD. Register as an anonymous module unless amdModuleId is set
1011
define(["jquery"], function (a0) {
1112
return (factory(a0));
1213
});
13-
} else if (typeof exports === 'object') {
14+
} else if (typeof module === 'object' && module.exports) {
1415
// Node. Does not work with strict CommonJS, but
1516
// only CommonJS-like environments that support module.exports,
1617
// like Node.
1718
module.exports = factory(require("jquery"));
1819
} else {
19-
factory(jQuery);
20+
factory(root["jQuery"]);
2021
}
2122
}(this, function ($) {
2223

@@ -3340,7 +3341,7 @@ function transitionSupport() {
33403341

33413342
// we'll return jQuery for plugins not to have to declare it as a dependency,
33423343
// but it's done by a build task since it should be included only once at the
3343-
// end when we concatenate the main file with a plugin
3344+
// end when we concatenate the main file with a plugin
33443345
// sideTip is Tooltipster's default plugin.
33453346
// This file will be UMDified by a build task.
33463347

dist/js/tooltipster.bundle.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tooltipster.main.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
/**
2-
* tooltipster http://iamceege.github.io/tooltipster/
3-
* A rockin' custom tooltip jQuery plugin
4-
* Developed by Caleb Jacob and Louis Ameline
5-
* MIT license
6-
*/
1+
/**
2+
* tooltipster http://iamceege.github.io/tooltipster/
3+
* A rockin' custom tooltip jQuery plugin
4+
* Developed by Caleb Jacob and Louis Ameline
5+
* MIT license
6+
*/
77
(function (root, factory) {
8+
if (root === undefined && window !== undefined) root = window;
89
if (typeof define === 'function' && define.amd) {
910
// AMD. Register as an anonymous module unless amdModuleId is set
1011
define(["jquery"], function (a0) {
1112
return (factory(a0));
1213
});
13-
} else if (typeof exports === 'object') {
14+
} else if (typeof module === 'object' && module.exports) {
1415
// Node. Does not work with strict CommonJS, but
1516
// only CommonJS-like environments that support module.exports,
1617
// like Node.
1718
module.exports = factory(require("jquery"));
1819
} else {
19-
factory(jQuery);
20+
factory(root["jQuery"]);
2021
}
2122
}(this, function ($) {
2223

dist/js/tooltipster.main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"grunt-contrib-cssmin": "1.0.1",
1818
"grunt-contrib-uglify": "1.0.1",
1919
"grunt-string-replace": "1.2.1",
20-
"grunt-umd": "2.3.6"
20+
"grunt-umd": "3.0.0"
2121
},
2222
"homepage": "https://github.com/iamceege/tooltipster",
2323
"keywords": [

0 commit comments

Comments
 (0)