vendor/assets/javascripts/uikit/core/tab.js in uikit2-rails-0.1.1 vs vendor/assets/javascripts/uikit/core/tab.js in uikit2-rails-0.1.2
- old
+ new
@@ -1,6 +1,6 @@
-/*! UIkit 2.22.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
+/*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI) {
"use strict";
UI.component('tab', {
@@ -8,11 +8,12 @@
defaults: {
'target' : '>li:not(.uk-tab-responsive, .uk-disabled)',
'connect' : false,
'active' : 0,
'animation' : false,
- 'duration' : 200
+ 'duration' : 200,
+ 'swiping' : true
},
boot: function() {
// init code
@@ -89,14 +90,15 @@
this.element.append(this.responsivetab);
// init UIkit components
if (this.options.connect) {
this.switcher = UI.switcher(this.element, {
- "toggle" : ">li:not(.uk-tab-responsive)",
- "connect" : this.options.connect,
- "active" : this.options.active,
- "animation" : this.options.animation,
- "duration" : this.options.duration
+ 'toggle' : '>li:not(.uk-tab-responsive)',
+ 'connect' : this.options.connect,
+ 'active' : this.options.active,
+ 'animation' : this.options.animation,
+ 'duration' : this.options.duration,
+ 'swiping' : this.options.swiping
});
}
UI.dropdown(this.responsivetab, {"mode": "click"});