Skip to content

Commit

Permalink
remove updateOwl
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirIvanin committed Nov 8, 2018
1 parent 77d3a4f commit 26317a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## CDN

```
<script src="https://cdn.jsdelivr.net/gh/VladimirIvanin/dataTabs@0.11.4/dist/dataTabs.js"></script>
<script src="https://cdn.jsdelivr.net/gh/VladimirIvanin/dataTabs@0.11.5/dist/dataTabs.js"></script>
```

## Настройки
Expand Down
9 changes: 0 additions & 9 deletions app/triggerTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export default function triggerTab(self, index, method) {
logger(self.options, 'triggerTab:isActive', isActive);

var $swiper = $target.find('.swiper-container');
var $owl = $target.find('.owl-carousel');

// только если активный, (isActive && options.useToggle) вызывает моргани
if (isActive) {
Expand All @@ -69,8 +68,6 @@ export default function triggerTab(self, index, method) {

updateSwiper($swiper);

updateOwl($owl);

if (options.pauseVideoAudio) {
pauseVideoAudio($targets.not(`.${classes.activeTab}`))
}
Expand Down Expand Up @@ -138,12 +135,6 @@ function updateSwiper($swiper) {
}
}

function updateOwl($owl) {
if ($owl && $owl.owlCarousel && $owl.owlCarousel().trigger) {
$owl.owlCarousel().trigger('refresh.owl.carousel');
}
}

function pauseVideoAudio($targets) {
$targets.each(function(index, el) {
$(el).find('video').each(function () { this.pause() });
Expand Down
4 changes: 2 additions & 2 deletions dist/dataTabs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datatabs",
"version": "0.11.4",
"version": "0.11.5",
"description": "jQuery tabs",
"main": "dist/dataTabs.js",
"scripts": {
Expand Down

0 comments on commit 26317a6

Please sign in to comment.