slick_rails 1.5.3 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/slick.js +19 -14
- data/lib/slick_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46743dc57ca5e939e37401c19f0e3e8d8f1cf9ea
|
4
|
+
data.tar.gz: e1f23e6307df0952fdc2622b7237fcf9db99f3aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a092259fd16462e74175df5849c686b84f8c1f99b2db76ee6b60c0becc6a938c951da78147fc4527b17b3bd29d0e0564b6c81c1ed7b81cf9dfc2f2968ab30d
|
7
|
+
data.tar.gz: 2e58c553d4e96a6468897f3f7fd39d2e3ede704eb90ec95c2e1fbf668e2bae6ce0f8c9d4bbc5b8a9dbc598e87ef0fcb678f2d020c057062b9e8ecf59489dfbea
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|___/_|_|\___|_|\_(_)/ |___/
|
7
7
|
|__/
|
8
8
|
|
9
|
-
Version: 1.5.
|
9
|
+
Version: 1.5.5
|
10
10
|
Author: Ken Wheeler
|
11
11
|
Website: http://kenwheeler.github.io
|
12
12
|
Docs: http://kenwheeler.github.io/slick
|
@@ -494,7 +494,9 @@
|
|
494
494
|
_.slideCount = _.$slides.length;
|
495
495
|
|
496
496
|
_.$slides.each(function(index, element) {
|
497
|
-
$(element)
|
497
|
+
$(element)
|
498
|
+
.attr('data-slick-index', index)
|
499
|
+
.data('originalStyling', $(element).attr('style') || '');
|
498
500
|
});
|
499
501
|
|
500
502
|
_.$slidesCache = _.$slides;
|
@@ -564,8 +566,10 @@
|
|
564
566
|
};
|
565
567
|
_.$slider.html(newSlides);
|
566
568
|
_.$slider.children().children().children()
|
567
|
-
.
|
568
|
-
|
569
|
+
.css({
|
570
|
+
'width':(100 / _.options.slidesPerRow) + "%",
|
571
|
+
'display': 'inline-block'
|
572
|
+
});
|
569
573
|
};
|
570
574
|
|
571
575
|
};
|
@@ -805,7 +809,7 @@
|
|
805
809
|
|
806
810
|
};
|
807
811
|
|
808
|
-
Slick.prototype.destroy = function() {
|
812
|
+
Slick.prototype.destroy = function(refresh) {
|
809
813
|
|
810
814
|
var _ = this;
|
811
815
|
|
@@ -828,16 +832,13 @@
|
|
828
832
|
}
|
829
833
|
|
830
834
|
if (_.$slides) {
|
831
|
-
|
835
|
+
|
836
|
+
_.$slides
|
837
|
+
.removeClass('slick-slide slick-active slick-center slick-visible')
|
832
838
|
.removeAttr('aria-hidden')
|
833
839
|
.removeAttr('data-slick-index')
|
834
|
-
.
|
835
|
-
|
836
|
-
left: '',
|
837
|
-
top: '',
|
838
|
-
zIndex: '',
|
839
|
-
opacity: '',
|
840
|
-
width: ''
|
840
|
+
.each(function(){
|
841
|
+
$(this).attr('style', $(this).data('originalStyling'));
|
841
842
|
});
|
842
843
|
|
843
844
|
_.$slideTrack.children(this.options.slide).detach();
|
@@ -856,6 +857,10 @@
|
|
856
857
|
|
857
858
|
_.unslicked = true;
|
858
859
|
|
860
|
+
if(!refresh) {
|
861
|
+
_.$slider.trigger('destroy', [_]);
|
862
|
+
}
|
863
|
+
|
859
864
|
};
|
860
865
|
|
861
866
|
Slick.prototype.disableTransition = function(slide) {
|
@@ -1450,7 +1455,7 @@
|
|
1450
1455
|
var _ = this,
|
1451
1456
|
currentSlide = _.currentSlide;
|
1452
1457
|
|
1453
|
-
_.destroy();
|
1458
|
+
_.destroy(true);
|
1454
1459
|
|
1455
1460
|
$.extend(_, _.initials);
|
1456
1461
|
|
data/lib/slick_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slick_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Israeli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|