corn_starch 1.8.18 → 1.8.20
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: 4b54e818af9846f4a9d98b3a6204aa7e331973e8
|
4
|
+
data.tar.gz: ae712323a88ee07deb7797561dc59ed42b62e683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d046ba60dedca2013993d1bf9a866e31a33b6ef6e83c928ed0b5ba9e356c8561b86005f61f1e6804713c02eee3e79122fef1e048f6b257877274813bc542fee3
|
7
|
+
data.tar.gz: b2b3314b733ddac000ce775a92ac416ea7483716ccaac11d55e6042346e94b190a7851001a6daf90130892be3f1ed679575ee776900e4f5cbb10f53a76ad9d84
|
@@ -10,7 +10,7 @@ window.infiniscroll_window_ctrl_containers = []
|
|
10
10
|
window.infiniscroll_detach_handler = (container) ->
|
11
11
|
|
12
12
|
# Check Window-Controlled
|
13
|
-
if container.attr
|
13
|
+
if container.attr 'infiniscroll-ctrl' == 'window'
|
14
14
|
|
15
15
|
# Remove from Window-Controlled Containers
|
16
16
|
idx = infiniscroll_window_ctrl_containers.indexOf container
|
@@ -24,7 +24,7 @@ window.infiniscroll_detach_handler = (container) ->
|
|
24
24
|
window.infiniscroll_attach_handler = (container) ->
|
25
25
|
|
26
26
|
# Check Window-Controlled
|
27
|
-
if container.attr
|
27
|
+
if container.attr 'infiniscroll-ctrl' == 'window'
|
28
28
|
|
29
29
|
# Add to Window-Controlled Containers
|
30
30
|
infiniscroll_window_ctrl_containers.push container
|
@@ -32,13 +32,13 @@ window.infiniscroll_attach_handler = (container) ->
|
|
32
32
|
else
|
33
33
|
|
34
34
|
# Bind Scroll Event
|
35
|
-
container.scroll
|
35
|
+
container.scroll infiniscroll_element_handler
|
36
36
|
|
37
37
|
# Should Element Reload
|
38
38
|
window.infiniscroll_should_reload = (container) ->
|
39
39
|
|
40
40
|
# Check Window-Controlled
|
41
|
-
if container.attr
|
41
|
+
if container.attr 'infiniscroll-ctrl' == 'window'
|
42
42
|
|
43
43
|
# Check Window / Document Scroll
|
44
44
|
e = $(window)
|
@@ -47,7 +47,7 @@ window.infiniscroll_should_reload = (container) ->
|
|
47
47
|
|
48
48
|
# Check Element Scroll
|
49
49
|
e = container[0]
|
50
|
-
(e.scrollTop + e.clientHeight) >= (e.scrollHeight - container.attr('infiniscroll-margin'))
|
50
|
+
(e.clientHeight > 0) && ((e.scrollTop + e.clientHeight) >= (e.scrollHeight - container.attr('infiniscroll-margin')))
|
51
51
|
|
52
52
|
# InfiniScroll
|
53
53
|
window.infiniscroll = (container) ->
|
@@ -95,7 +95,7 @@ window.infiniscroll = (container) ->
|
|
95
95
|
# Reset Container
|
96
96
|
window.infiniscroll_reset = (container) ->
|
97
97
|
|
98
|
-
|
98
|
+
# Acquire Container
|
99
99
|
c = $("##{container}")
|
100
100
|
|
101
101
|
# Reset Next
|
@@ -122,6 +122,15 @@ window.infiniscroll_window_handler = ->
|
|
122
122
|
# Handle Scrolling
|
123
123
|
infiniscroll_handler e
|
124
124
|
|
125
|
+
# Element Scroll Handler
|
126
|
+
window.infiniscroll_element_handler = ->
|
127
|
+
|
128
|
+
# Acquire Element
|
129
|
+
c = $(@)
|
130
|
+
|
131
|
+
# Handle Scroll
|
132
|
+
infiniscroll_handler c
|
133
|
+
|
125
134
|
# Scroll Handler
|
126
135
|
window.infiniscroll_handler = (c) ->
|
127
136
|
|
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.20
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|