diff options
Diffstat (limited to 'docs/dist/js/umd/tooltip.js')
| -rw-r--r-- | docs/dist/js/umd/tooltip.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/docs/dist/js/umd/tooltip.js b/docs/dist/js/umd/tooltip.js index 49fca2a75..d36a949f6 100644 --- a/docs/dist/js/umd/tooltip.js +++ b/docs/dist/js/umd/tooltip.js @@ -527,6 +527,30 @@ return config; } }], [{ + key: '_jQueryInterface', + + // static + + value: function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY); + var _config = typeof config === 'object' ? config : null; + + if (!data && /destroy|hide/.test(config)) { + return; + } + + if (!data) { + data = new Tooltip(this, _config); + $(this).data(DATA_KEY, data); + } + + if (typeof config === 'string') { + data[config](); + } + }); + } + }, { key: 'VERSION', // getters @@ -564,30 +588,6 @@ get: function () { return DefaultType; } - }, { - key: '_jQueryInterface', - - // static - - value: function _jQueryInterface(config) { - return this.each(function () { - var data = $(this).data(DATA_KEY); - var _config = typeof config === 'object' ? config : null; - - if (!data && /destroy|hide/.test(config)) { - return; - } - - if (!data) { - data = new Tooltip(this, _config); - $(this).data(DATA_KEY, data); - } - - if (typeof config === 'string') { - data[config](); - } - }); - } }]); return Tooltip; @@ -610,4 +610,4 @@ })(jQuery); module.exports = Tooltip; -});
\ No newline at end of file +}); |
