jquery-slick-rails 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de8071fa24414da25d446f62c07cf92c37365e4f
4
- data.tar.gz: 3e35f59b6d5b0320efbb3f3306ba77442f9b5cae
3
+ metadata.gz: 533738ae6c1493c8d180c97a8e6f554c7fd9ae24
4
+ data.tar.gz: bb334b1b5456a62a85d66f29ad8b2c2ecf02e35c
5
5
  SHA512:
6
- metadata.gz: 98fbe26fb1e0ab78a8ea54c93e7b1984f377e94306a23e74332330b43984484acf0a1744cac24735fd8d747902cbd6f0cc6ecb793c475e67301198e20cff3e32
7
- data.tar.gz: b7ca0755137c4fe6bea8537412db3cc401ba5db4294f4c96eb8d88505d3ba91c386ef40a51f9498d8d5516bbda56be620f77b3e6c535e1b7bcded56578f2e2d4
6
+ metadata.gz: 82898a6640ebecccb8d8a296bfd2ebb4a75bdf929ef121db0062cef15dfc051fb91016a79c19b7b9872f413145129a915502908830e4548ed9c3cde93610c0f2
7
+ data.tar.gz: a805cc52e1d738838214e7db8dfcf8ec0ad6eb8fcf05b9885c7470b6ec1972ad58d18e99fcf7996abab9fc308c985eb84734f3e6aadb5b0768b1b096058c457a
@@ -6,7 +6,7 @@
6
6
  |___/_|_|\___|_|\_(_)/ |___/
7
7
  |__/
8
8
 
9
- Version: 1.5.1
9
+ Version: 1.5.2
10
10
  Author: Ken Wheeler
11
11
  Website: http://kenwheeler.github.io
12
12
  Docs: http://kenwheeler.github.io/slick
@@ -168,9 +168,6 @@
168
168
  if (typeof document.mozHidden !== 'undefined') {
169
169
  _.hidden = 'mozHidden';
170
170
  _.visibilityChange = 'mozvisibilitychange';
171
- } else if (typeof document.msHidden !== 'undefined') {
172
- _.hidden = 'msHidden';
173
- _.visibilityChange = 'msvisibilitychange';
174
171
  } else if (typeof document.webkitHidden !== 'undefined') {
175
172
  _.hidden = 'webkitHidden';
176
173
  _.visibilityChange = 'webkitvisibilitychange';
@@ -606,6 +603,7 @@
606
603
  _.currentSlide = _.options.initialSlide;
607
604
  _.refresh();
608
605
  }
606
+ _.$slider.trigger('breakpoint', [_, targetBreakpoint]);
609
607
  }
610
608
  } else {
611
609
  _.activeBreakpoint = targetBreakpoint;
@@ -619,6 +617,7 @@
619
617
  _.currentSlide = _.options.initialSlide;
620
618
  _.refresh();
621
619
  }
620
+ _.$slider.trigger('breakpoint', [_, targetBreakpoint]);
622
621
  }
623
622
  } else {
624
623
  if (_.activeBreakpoint !== null) {
@@ -627,6 +626,7 @@
627
626
  if (initial === true)
628
627
  _.currentSlide = _.options.initialSlide;
629
628
  _.refresh();
629
+ _.$slider.trigger('breakpoint', [_, targetBreakpoint]);
630
630
  }
631
631
  }
632
632
 
@@ -707,8 +707,8 @@
707
707
 
708
708
  if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.options.autoplay === true) {
709
709
  $('li', _.$dots)
710
- .off('mouseenter.slick', _.setPaused.bind(_, true))
711
- .off('mouseleave.slick', _.setPaused.bind(_, false));
710
+ .off('mouseenter.slick', $.proxy(_.setPaused, _, true))
711
+ .off('mouseleave.slick', $.proxy(_.setPaused, _, false));
712
712
  }
713
713
 
714
714
  if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
@@ -723,12 +723,10 @@
723
723
 
724
724
  _.$list.off('click.slick', _.clickHandler);
725
725
 
726
- if (_.options.autoplay === true) {
727
- $(document).off(_.visibilityChange, _.visibility);
728
- }
726
+ $(document).off(_.visibilityChange, _.visibility);
729
727
 
730
- _.$list.off('mouseenter.slick', _.setPaused.bind(_, true));
731
- _.$list.off('mouseleave.slick', _.setPaused.bind(_, false));
728
+ _.$list.off('mouseenter.slick', $.proxy(_.setPaused, _, true));
729
+ _.$list.off('mouseleave.slick', $.proxy(_.setPaused, _, false));
732
730
 
733
731
  if (_.options.accessibility === true) {
734
732
  _.$list.off('keydown.slick', _.keyHandler);
@@ -1131,8 +1129,8 @@
1131
1129
 
1132
1130
  if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.options.autoplay === true) {
1133
1131
  $('li', _.$dots)
1134
- .on('mouseenter.slick', _.setPaused.bind(_, true))
1135
- .on('mouseleave.slick', _.setPaused.bind(_, false));
1132
+ .on('mouseenter.slick', $.proxy(_.setPaused, _, true))
1133
+ .on('mouseleave.slick', $.proxy(_.setPaused, _, false));
1136
1134
  }
1137
1135
 
1138
1136
  };
@@ -1160,12 +1158,10 @@
1160
1158
 
1161
1159
  _.$list.on('click.slick', _.clickHandler);
1162
1160
 
1163
- if (_.options.autoplay === true) {
1164
- $(document).on(_.visibilityChange, _.visibility.bind(_));
1165
- }
1161
+ $(document).on(_.visibilityChange, $.proxy(_.visibility, _));
1166
1162
 
1167
- _.$list.on('mouseenter.slick', _.setPaused.bind(_, true));
1168
- _.$list.on('mouseleave.slick', _.setPaused.bind(_, false));
1163
+ _.$list.on('mouseenter.slick', $.proxy(_.setPaused, _, true));
1164
+ _.$list.on('mouseleave.slick', $.proxy(_.setPaused, _, false));
1169
1165
 
1170
1166
  if (_.options.accessibility === true) {
1171
1167
  _.$list.on('keydown.slick', _.keyHandler);
@@ -1175,9 +1171,9 @@
1175
1171
  $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1176
1172
  }
1177
1173
 
1178
- $(window).on('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange.bind(_));
1174
+ $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));
1179
1175
 
1180
- $(window).on('resize.slick.slick-' + _.instanceUid, _.resize.bind(_));
1176
+ $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));
1181
1177
 
1182
1178
  $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
1183
1179
 
@@ -1827,7 +1823,11 @@
1827
1823
 
1828
1824
  if (_.options.autoplay === true && _.options.pauseOnHover === true) {
1829
1825
  _.paused = paused;
1830
- _.autoPlayClear();
1826
+ if (!paused) {
1827
+ _.autoPlay();
1828
+ } else {
1829
+ _.autoPlayClear();
1830
+ }
1831
1831
  }
1832
1832
  };
1833
1833
 
@@ -2289,8 +2289,10 @@
2289
2289
  _.paused = true;
2290
2290
  _.autoPlayClear();
2291
2291
  } else {
2292
- _.paused = false;
2293
- _.autoPlay();
2292
+ if (_.options.autoplay === true) {
2293
+ _.paused = false;
2294
+ _.autoPlay();
2295
+ }
2294
2296
  }
2295
2297
 
2296
2298
  };
@@ -1,3 +1,3 @@
1
1
  module JquerySlickRails
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
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.1
4
+ version: 1.5.2
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-04-24 00:00:00.000000000 Z
11
+ date: 2015-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties