mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 03:11:19 +02:00
dist
This commit is contained in:
10
js/dist/tab.js
vendored
10
js/dist/tab.js
vendored
@@ -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]();
|
||||
|
Reference in New Issue
Block a user