diff options
author | Mark Otto <markdotto@gmail.com> | 2018-01-12 09:42:40 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2018-01-12 09:42:40 +0300 |
commit | 6d8d8639f3a290cba93ef406c59ea31ad46e1c6d (patch) | |
tree | afef6ae26f246839effeb0fe894bab25075c7418 /js/dist/tab.js | |
parent | 80d0943b95984bfaf4997d2198d467876d294bd8 (diff) |
dist
Diffstat (limited to 'js/dist/tab.js')
-rw-r--r-- | js/dist/tab.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/dist/tab.js b/js/dist/tab.js index c5def7a1ac..79d1682cfe 100644 --- a/js/dist/tab.js +++ b/js/dist/tab.js @@ -56,12 +56,12 @@ var Tab = function ($) { function () { function Tab(element) { this._element = element; - } // getters + } // Getters var _proto = Tab.prototype; - // public + // Public _proto.show = function show() { var _this = this; @@ -124,7 +124,7 @@ var Tab = function ($) { _proto.dispose = function dispose() { $.removeData(this._element, DATA_KEY); this._element = null; - }; // private + }; // Private _proto._activate = function _activate(element, container, callback) { @@ -188,7 +188,7 @@ var Tab = function ($) { if (callback) { callback(); } - }; // static + }; // Static Tab._jQueryInterface = function _jQueryInterface(config) { @@ -203,7 +203,7 @@ var Tab = function ($) { if (typeof config === 'string') { if (typeof data[config] === 'undefined') { - throw new Error("No method named \"" + config + "\""); + throw new TypeError("No method named \"" + config + "\""); } data[config](); |