pagy 1.3.1 → 1.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ded274d1b6929671f79ae2dea4eed1203241a2a5178aa747c39e3ea3d0b86c7a
4
- data.tar.gz: 85d3ab91e16da33221568d4d075a9e95040c6739d810558287d19b24bc311169
3
+ metadata.gz: 815315ceb63f00493b1ff51982de163c97f92b9fad5a9b372124be3c685cbf18
4
+ data.tar.gz: 26a892148d17b4c1d3dc66f8cdd9656e43f40979ad97233734dfef51360d8f38
5
5
  SHA512:
6
- metadata.gz: 84f75a95a68c73ebf85052ea9c21300c249928d5450ff01cb46ae1919d60276b77bb2f73eb6b36f243eac7522406c7837aeaca66983dedb0866b3b6a9dde549e
7
- data.tar.gz: 99cf22a77850bc49431c8656ec7c95f218049f00e8cd21862692f32c2516e9bd1f4a827b73804ad66f3ed1f9640a77c5c823b276a4662c804bb507d67fd60484
6
+ metadata.gz: 0e72b4d3fe0bcbcfe7f769b233bf265eef25384bc5eafcbbd4d711f363d89770be737a914bbf39f50977a386c39e9b023ba6471aa3a37ead0688d427b9875265
7
+ data.tar.gz: d388a1d003cfa5129c67fc53f7838866a1dc56df42f16c729bbdced4e6d6b9fd9cddc516125f92c74eabca9001c93da213709d70007358a8b1ee8d46140ed0e3
@@ -55,6 +55,7 @@ Pagy.responsive = function(id, tags, widths, series){
55
55
  lastWidth = undefined,
56
56
  resizeId = 0,
57
57
  render = function(){
58
+ if (container.clientWidth === 0){ clearTimeout(resizeId); return setTimeout(render, 300) }
58
59
  var width = widths.find(function(w) {return container.clientWidth > w});
59
60
  if (width !== lastWidth) {
60
61
  while (pagyEl.firstChild) { pagyEl.removeChild(pagyEl.firstChild) }
data/lib/pagy.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  require 'pathname'
5
5
 
6
- class Pagy ; VERSION = '1.3.1'
6
+ class Pagy ; VERSION = '1.3.2'
7
7
 
8
8
  class OverflowError < StandardError; attr_reader :pagy; def initialize(pagy) @pagy = pagy end; end
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domizio Demichelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2019-01-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Agnostic pagination in plain ruby: it works with any framework, ORM
14
14
  and DB type, with all kinds of collections, even pre-paginated, scopes, Arrays,