motion-kit-events 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion-kit-events/layout.rb +5 -1
- data/lib/motion-kit-events/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cea6c5a02c689de48690b53e918cf32663782aa2
|
4
|
+
data.tar.gz: e373a5c53070f8fda76a8216174d7f9d582e60a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 118f402015d3c99470d53ce4a906d7e84ec5edf3ef1ae653759093817c6c06e7066ad7cb2de4d9cbd574473abc3bb19a31aa55e9638204e943a1c978d43a227b
|
7
|
+
data.tar.gz: 6468967f686b944e005f7ecef612b21ff396adffb3a72b11d74800cc89f2b256d18cf0ae16fd0b7fe56283850df3d36a5139fcd8e055cc486364c130aa9eef6c
|
@@ -47,7 +47,11 @@ module MotionKit
|
|
47
47
|
params = args[1..-1]
|
48
48
|
params = params[0] if params.size == 1
|
49
49
|
motion_kit_event_handlers[event].each do |handler|
|
50
|
-
handler.
|
50
|
+
if handler.arity == 0
|
51
|
+
handler.call
|
52
|
+
else
|
53
|
+
handler.call(params)
|
54
|
+
end
|
51
55
|
end
|
52
56
|
end
|
53
57
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-kit-events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-kit
|