corn_starch 1.3.32 → 1.3.33

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: 35db5209f13debe826e1df4e7f51d8ad06c5ec1b
4
- data.tar.gz: 918957e1008073f13698ab10140c1773434fd0fb
3
+ metadata.gz: 23d96c93f17bf85dbd9bec536cd2a56d71804e52
4
+ data.tar.gz: aed41a2a3bf295de8fcc7d0f5428ff3eebcc69a1
5
5
  SHA512:
6
- metadata.gz: 9e66090d3e4276bdddfcc1ad179e695f02b16a329109c48452383b7e085a4899ee85cbb389096f782135b650e325b90dc8563760188ed34075a0e4c645f45195
7
- data.tar.gz: c703c0a866543768ccafacbd0f5eb216f30904562d87867fd299b6304ad46686108b976319ffacc8c914721e1684d10651b3023788782d94aed59cbd88ea5a09
6
+ metadata.gz: 3855216869080289ddbe02b41768fdf06c36b706ccc31273c97d721149e41737a6d7a8a05d21d0d7859dff8d23280c0671f22c200bb2a3b343b4a3e988d2dc3d
7
+ data.tar.gz: 1de0b751eed2213a5de859a3312f42acde315210202a8e864730732f1fe17e88f305eae702dd022d0146cc3c7e4812742cd8ceb02da954e297962ddee053566b
@@ -13,6 +13,7 @@ $(document).on 'page:load', ->
13
13
  return if infiniscroll_container.length == 0
14
14
  infiniscroll_container = infiniscroll_container[0]
15
15
 
16
+ # Check Scroll
16
17
  if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
17
18
  infiniscroll infiniscroll_container.id
18
19
 
@@ -68,6 +69,13 @@ window.infiniscroll = (container) ->
68
69
  # Append Content
69
70
  $("##{container}").append data['content']
70
71
 
71
- # Re-Attach Scroll Handler
72
- $(window).unbind('scroll')
73
- $(window).scroll infiniscroll_handler
72
+ # Check Scroll
73
+ if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - c.getAttribute('infiniscroll-margin'))
74
+
75
+ # Scroll
76
+ infiniscroll c.id
77
+ else
78
+
79
+ # Re-Attach Scroll Handler
80
+ $(window).unbind('scroll')
81
+ $(window).scroll infiniscroll_handler
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.3.32'
2
+ VERSION = '1.3.33'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.32
4
+ version: 1.3.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse