jquery-slick-rails 1.5.6 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/jquery.slick.js +24 -7
- data/lib/jquery-slick-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4849c43b286490eaa4445a8972f3fe508063e297
|
4
|
+
data.tar.gz: af765917b5f98fe514242965b73536b6c3a94b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03e3d3071c4cea383bb8c93463769d547fab097b03b7112fc9a950acf7f53bb28c2efb6587b3cfebdab0f155a396a602f794e6191fbde04d05244a033077d2c2
|
7
|
+
data.tar.gz: be70c550dbf23a02b765880e682d56a7e10669cb0c2b64effd5e8738b20eab44b31f5c776c9831b99d3ec18668f521edebaf0b5d8ab438a61736c4ab063c773a
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|___/_|_|\___|_|\_(_)/ |___/
|
7
7
|
|__/
|
8
8
|
|
9
|
-
Version: 1.5.
|
9
|
+
Version: 1.5.8
|
10
10
|
Author: Ken Wheeler
|
11
11
|
Website: http://kenwheeler.github.io
|
12
12
|
Docs: http://kenwheeler.github.io/slick
|
@@ -827,7 +827,8 @@
|
|
827
827
|
_.$dots.remove();
|
828
828
|
}
|
829
829
|
|
830
|
-
|
830
|
+
|
831
|
+
if ( _.$prevArrow && _.$prevArrow.length ) {
|
831
832
|
|
832
833
|
_.$prevArrow
|
833
834
|
.removeClass('slick-disabled slick-arrow slick-hidden')
|
@@ -839,7 +840,7 @@
|
|
839
840
|
}
|
840
841
|
}
|
841
842
|
|
842
|
-
if ( _.$nextArrow.length ) {
|
843
|
+
if ( _.$nextArrow && _.$nextArrow.length ) {
|
843
844
|
|
844
845
|
_.$nextArrow
|
845
846
|
.removeClass('slick-disabled slick-arrow slick-hidden')
|
@@ -849,8 +850,10 @@
|
|
849
850
|
if ( _.htmlExpr.test( _.options.nextArrow )) {
|
850
851
|
_.$nextArrow.remove();
|
851
852
|
}
|
853
|
+
|
852
854
|
}
|
853
855
|
|
856
|
+
|
854
857
|
if (_.$slides) {
|
855
858
|
|
856
859
|
_.$slides
|
@@ -1478,8 +1481,8 @@
|
|
1478
1481
|
|
1479
1482
|
};
|
1480
1483
|
|
1481
|
-
Slick.prototype.preventDefault = function(
|
1482
|
-
|
1484
|
+
Slick.prototype.preventDefault = function(event) {
|
1485
|
+
event.preventDefault();
|
1483
1486
|
};
|
1484
1487
|
|
1485
1488
|
Slick.prototype.progressiveLazyLoad = function() {
|
@@ -1509,8 +1512,22 @@
|
|
1509
1512
|
|
1510
1513
|
Slick.prototype.refresh = function( initializing ) {
|
1511
1514
|
|
1512
|
-
var _ = this,
|
1513
|
-
|
1515
|
+
var _ = this, currentSlide, firstVisible;
|
1516
|
+
|
1517
|
+
firstVisible = _.slideCount - _.options.slidesToShow;
|
1518
|
+
|
1519
|
+
// check that the new breakpoint can actually accept the
|
1520
|
+
// "current slide" as the current slide, otherwise we need
|
1521
|
+
// to set it to the closest possible value.
|
1522
|
+
if ( !_.options.infinite ) {
|
1523
|
+
if ( _.slideCount <= _.options.slidesToShow ) {
|
1524
|
+
_.currentSlide = 0;
|
1525
|
+
} else if ( _.currentSlide > firstVisible ) {
|
1526
|
+
_.currentSlide = firstVisible;
|
1527
|
+
}
|
1528
|
+
}
|
1529
|
+
|
1530
|
+
currentSlide = _.currentSlide;
|
1514
1531
|
|
1515
1532
|
_.destroy(true);
|
1516
1533
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-slick-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Bodrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.4.
|
67
|
+
rubygems_version: 2.4.8
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: Integrates Slick carousel into Rails app.
|