href : '',
getAutoCreate : function(){
- var cfg = {
+
+
+ var cfg = {
tag: 'div',
// item is needed for carousel - not sure if it has any effect otherwise
- cls: 'tab-pane item' + ((this.href.length) ? ' clickable ' : ''),
+ cls: 'carousel-item tab-pane item' + ((this.href.length) ? ' clickable ' : ''),
html: this.html || ''
};
cfg.tabId = this.tabId;
}
+
return cfg;
},
onTouchStart : function(e)
{
- e.preventDefault();
-
this.swiping = false;
this.startX = e.browserEvent.touches[0].clientX;
onTouchMove : function(e)
{
- e.preventDefault();
-
this.swiping = true;
this.endX = e.browserEvent.touches[0].clientX;
onTouchEnd : function(e)
{
- e.preventDefault();
-
if(!this.swiping){
this.onClick(e);
return;