corn_starch 1.3.34 → 1.3.35

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: 13bcb9dbcda2599a427d585e169528d31b1216c7
4
- data.tar.gz: 6feeb8b04fb523c80f1914f4332e364c14bf493a
3
+ metadata.gz: 0d68b505207fa6e24b35f0ce126e1e35725b7d70
4
+ data.tar.gz: 799a5e1515eed000e492141d93b471f8e114e104
5
5
  SHA512:
6
- metadata.gz: 4a0327a27c026793688111b34612453d130b1fddd2d191579849f1f13a7df0e21fbb5b75b7b52216f8068a8d124670b9df3b43ff53c05a4e3e6705e9e129ab83
7
- data.tar.gz: cba2282d879a207a676bd6c3b641b93068ba654c14a9e5d891df3b1c4b1f3e9080540200335119a5523c4a5c9e6b17e3f43217086f45f1b00d9a9870b05fdf17
6
+ metadata.gz: 6a50403bc95e5f5fd8ea966a64e38663783dfa7d3d2bf5af8cc5f7ec093a11bdc0e9fd8ec89619824af44b14e26c752ca2088fc0d7599265db06e3a99e686de9
7
+ data.tar.gz: 17684578899974b2ec298a17befe6474598dca7682da6dbe296458a48fcea8bf35a7cf8b1d598ef8e4ebe23703421fe60baf1b7860d80deeadfe8daedc12ec3f
@@ -3,43 +3,6 @@
3
3
 
4
4
  # InfiniScroll JS
5
5
 
6
- # Initialize InfiniScroll for the Page
7
- $(document).on 'page:load', infiniscroll_init
8
- $(document).ready infiniscroll_init
9
-
10
- # InfiniScroll Init
11
- window.infiniscroll_init = () ->
12
-
13
- # Acquire Container
14
- infiniscroll_container = $('.infiniscroll-container')
15
-
16
- # Check Presence
17
- return if infiniscroll_container.length == 0
18
- infiniscroll_container = infiniscroll_container[0]
19
-
20
- # Check Scroll
21
- if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
22
- infiniscroll infiniscroll_container.id
23
-
24
- # Handle Scroll Events
25
- $(window).unbind('scroll')
26
- $(window).scroll infiniscroll_handler
27
-
28
- # Scroll Handler
29
- window.infiniscroll_handler = () ->
30
-
31
- # Acquire Container
32
- infiniscroll_container = $('.infiniscroll-container')[0]
33
-
34
- # Check Position
35
- if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
36
-
37
- # Drop Scroll Handler
38
- $(window).unbind('scroll')
39
-
40
- # Scroll it, bitch !
41
- infiniscroll infiniscroll_container.id
42
-
43
6
  # InfiniScroll
44
7
  window.infiniscroll = (container) ->
45
8
 
@@ -83,3 +46,40 @@ window.infiniscroll = (container) ->
83
46
  # Re-Attach Scroll Handler
84
47
  $(window).unbind('scroll')
85
48
  $(window).scroll infiniscroll_handler
49
+
50
+ # Scroll Handler
51
+ window.infiniscroll_handler = () ->
52
+
53
+ # Acquire Container
54
+ infiniscroll_container = $('.infiniscroll-container')[0]
55
+
56
+ # Check Position
57
+ if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
58
+
59
+ # Drop Scroll Handler
60
+ $(window).unbind('scroll')
61
+
62
+ # Scroll it, bitch !
63
+ infiniscroll infiniscroll_container.id
64
+
65
+ # InfiniScroll Init
66
+ window.infiniscroll_init = () ->
67
+
68
+ # Acquire Container
69
+ infiniscroll_container = $('.infiniscroll-container')
70
+
71
+ # Check Presence
72
+ return if infiniscroll_container.length == 0
73
+ infiniscroll_container = infiniscroll_container[0]
74
+
75
+ # Check Scroll
76
+ if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
77
+ infiniscroll infiniscroll_container.id
78
+
79
+ # Handle Scroll Events
80
+ $(window).unbind('scroll')
81
+ $(window).scroll infiniscroll_handler
82
+
83
+ # Initialize InfiniScroll for the Page
84
+ $(document).on 'page:load', infiniscroll_init
85
+ $(document).ready infiniscroll_init
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.3.34'
2
+ VERSION = '1.3.35'
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.34
4
+ version: 1.3.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse