corn_starch 1.3.19 → 1.3.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: 9a9cb9ce0d5591d3495d42db68272c04d67dc380
|
4
|
+
data.tar.gz: e71e7e5e4449870611bdfdac8b4e1553cb20337f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2015c729d409a257df801c8e9025f39e3094c6dea8a2c2373c96aaf2fcec735c954cbf49baa1a0ca537777cca6d94c490888631effaa2e1b60276f6c517ca878
|
7
|
+
data.tar.gz: 12cc0d1399f3efe75f12baeb28bc71215f270b344b22039ac4cf91ddc50d0d1869050a84cc368ceee6cc68bef9789f3eae52af8a9b37c0c3a8b82daa23a67fc2
|
@@ -9,9 +9,6 @@ $ ->
|
|
9
9
|
# Acquire Container
|
10
10
|
infiniscroll_container = $('.infiniscroll-container')
|
11
11
|
|
12
|
-
# DEBUG
|
13
|
-
alert('NO SCROLL') if infiniscroll_container.length == 0
|
14
|
-
|
15
12
|
# Check Presence
|
16
13
|
return if infiniscroll_container.length == 0
|
17
14
|
infiniscroll_container = infiniscroll_container[0]
|
@@ -20,7 +17,7 @@ $ ->
|
|
20
17
|
$(window).scroll ->
|
21
18
|
|
22
19
|
# Check Position
|
23
|
-
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.
|
20
|
+
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
|
24
21
|
|
25
22
|
# DEBUG
|
26
23
|
alert('InfiniScroll Container : ' + infiniscroll_container.id)
|
data/lib/corn_starch/version.rb
CHANGED