Skip to content

Commit c42024e

Browse files
authored
js cleanup, fix grunt tasks (#6)
1 parent d9d38dd commit c42024e

18 files changed

+72
-26
lines changed

bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* bootstrap-tooltip-custom-class
3-
* v1.0.0
3+
* v1.0.2
44
* Extends Bootstrap Tooltip plugin by adding custom classes.
55
* Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme
66
* License: MIT

bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.min.css

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

bootstrap-v3/dist/js/bootstrap-tooltip-custom-class.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*!
2+
* bootstrap-tooltip-custom-class
3+
* v1.0.2
4+
* Extends Bootstrap Tooltip plugin by adding custom classes.
5+
* Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme
6+
* License: MIT
7+
*/
8+
9+
110
(function ($) {
211

312
if (typeof $.fn.tooltip.Constructor === 'undefined') {
@@ -14,7 +23,7 @@
1423

1524
Tooltip.prototype.show = function () {
1625

17-
_show.apply(this,Array.prototype.slice.apply(arguments));
26+
_show.apply(this);
1827

1928
if ( this.options.customClass ) {
2029
var $tip = this.tip();
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.DEFAULTS,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){s.apply(this,Array.prototype.slice.apply(arguments)),this.options.customClass&&this.tip().addClass(this.options.customClass)}}(window.jQuery);
1+
/*!
2+
* bootstrap-tooltip-custom-class
3+
* v1.0.2
4+
* Extends Bootstrap Tooltip plugin by adding custom classes.
5+
* Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme
6+
* License: MIT
7+
*/
8+
9+
10+
!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.DEFAULTS,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){s.apply(this),this.options.customClass&&this.tip().addClass(this.options.customClass)}}(window.jQuery);

bootstrap-v3/src/js/bootstrap-tooltip-custom-class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
Tooltip.prototype.show = function () {
1616

17-
_show.apply(this,Array.prototype.slice.apply(arguments));
17+
_show.apply(this);
1818

1919
if ( this.options.customClass ) {
2020
var $tip = this.tip();

bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* bootstrap-tooltip-custom-class
3-
* v1.0.0
3+
* v1.0.2
44
* Extends Bootstrap Tooltip plugin by adding custom classes.
55
* Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme
66
* License: MIT

bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css

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

bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*!
2+
* bootstrap-tooltip-custom-class
3+
* v1.0.2
4+
* Extends Bootstrap Tooltip plugin by adding custom classes.
5+
* Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme
6+
* License: MIT
7+
*/
8+
9+
110
(function($) {
211

312
if (typeof $.fn.tooltip.Constructor === 'undefined') {
@@ -6,7 +15,6 @@
615

716
var Tooltip = $.fn.tooltip.Constructor;
817

9-
// add customClass option to Bootstrap Tooltip
1018
$.extend( Tooltip.Default, {
1119
customClass: ''
1220
});
@@ -15,8 +23,7 @@
1523

1624
Tooltip.prototype.show = function () {
1725

18-
// invoke parent method
19-
_show.apply(this,Array.prototype.slice.apply(arguments));
26+
_show.apply(this);
2027

2128
if (this.config.customClass) {
2229
var tip = this.getTipElement();
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.Default,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){if(s.apply(this,Array.prototype.slice.apply(arguments)),this.config.customClass){var t=this.getTipElement();o(t).addClass(this.config.customClass)}}}(window.jQuery);
1+
/*!
2+
* bootstrap-tooltip-custom-class
3+
* v1.0.2
4+
* Extends Bootstrap Tooltip plugin by adding custom classes.
5+
* Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme
6+
* License: MIT
7+
*/
8+
9+
10+
!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.Default,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){if(s.apply(this),this.config.customClass){var t=this.getTipElement();o(t).addClass(this.config.customClass)}}}(window.jQuery);

bootstrap-v4-alpha/package-lock.json

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

0 commit comments

Comments
 (0)