Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascripts/bootstrap/tab.js')
-rw-r--r--assets/javascripts/bootstrap/tab.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/assets/javascripts/bootstrap/tab.js b/assets/javascripts/bootstrap/tab.js
index a135130..b8aa5a8 100644
--- a/assets/javascripts/bootstrap/tab.js
+++ b/assets/javascripts/bootstrap/tab.js
@@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
/**
* --------------------------------------------------------------------------
- * Bootstrap (v4.0.0-beta.3): tab.js
+ * Bootstrap (v4.0.0): tab.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -15,7 +15,7 @@ var Tab = function ($) {
* ------------------------------------------------------------------------
*/
var NAME = 'tab';
- var VERSION = '4.0.0-beta.3';
+ var VERSION = '4.0.0';
var DATA_KEY = 'bs.tab';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
@@ -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]();