corn_starch 1.8.12 → 1.8.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42a617a0002934bde8eedda94f6a0db9bfab3ab1
|
4
|
+
data.tar.gz: 23f3b5354a0a26e2cce68341ae80481ddec96939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75fbfe0b18ca011c31126578ce4ce79f313b44103aa49d61eba3f0f24108daec9a40692d79db6cef173e74425a0985f23009e693cded4cd6188e964ccbdbc3b
|
7
|
+
data.tar.gz: 0520309e9e38dad9b70e5c210a87b44c4dc65a09648e26ebefb3a07605717f1c6e7378dbd536d97d7f9a872c6222e20c75b46e7b2a542640a61d4a182f210d87
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# Should Element Reload
|
7
7
|
window.infiniscroll_should_reload = (container) ->
|
8
|
-
(container.scrollTop() + container.offsetHeight) >= (container.scrollHeight - container.attr('infiniscroll-margin'))
|
8
|
+
(container[0].scrollTop() + container[0].offsetHeight) >= (container[0].scrollHeight - container.attr('infiniscroll-margin'))
|
9
9
|
|
10
10
|
# InfiniScroll
|
11
11
|
window.infiniscroll = (container) ->
|
@@ -40,6 +40,9 @@ window.infiniscroll = (container) ->
|
|
40
40
|
# Append Content
|
41
41
|
c.append data['content']
|
42
42
|
|
43
|
+
# Unbind
|
44
|
+
c.unbind 'scroll'
|
45
|
+
|
43
46
|
# Check Scroll
|
44
47
|
if infiniscroll_should_reload c
|
45
48
|
|
@@ -48,8 +51,7 @@ window.infiniscroll = (container) ->
|
|
48
51
|
else
|
49
52
|
|
50
53
|
# Re-Attach Scroll Handler
|
51
|
-
|
52
|
-
$(window).scroll infiniscroll_handler
|
54
|
+
c.scroll infiniscroll_handler
|
53
55
|
|
54
56
|
# Reset Container
|
55
57
|
window.infiniscroll_reset = (container) ->
|
@@ -62,10 +64,10 @@ window.infiniscroll_reset = (container) ->
|
|
62
64
|
|
63
65
|
# Empty Container
|
64
66
|
c.empty()
|
65
|
-
|
67
|
+
|
66
68
|
# Jumpstart Container
|
67
69
|
infiniscroll container
|
68
|
-
|
70
|
+
|
69
71
|
# Scroll Handler
|
70
72
|
window.infiniscroll_handler = (c) ->
|
71
73
|
|
data/lib/corn_starch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corn_starch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eresse
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|