rm-extensions 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion/observation.rb +13 -1
- data/lib/rm-extensions/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: d3b640dd2b89eae8bfcc443d4a5e5067abd283f3
|
4
|
+
data.tar.gz: 26bb1864c3fc4f89cf09b39e858a92001df0ea1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17b76f012868bf23b795b02bda7b8ecb77907825e0a1b2684cbc101eb619c1c2ddaf68dda300eb21a140ab31299f596e2a3bf1dc93983641d9929b04d0672e49
|
7
|
+
data.tar.gz: fd49633cff7b9fb77a9bd108c515ef3647054700b886e8a80cee317619be57109b91ff230428e48597a7bbc74098b84cf1750175e0205a25a81149adcc83836e
|
data/lib/motion/observation.rb
CHANGED
@@ -64,6 +64,13 @@ module RMExtensions
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
# remove all observations and event callbacks on this object
|
68
|
+
def rmext_cleanup
|
69
|
+
if @rmext_observation_proxy
|
70
|
+
@rmext_observation_proxy.cleanup
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
67
74
|
end
|
68
75
|
|
69
76
|
end
|
@@ -85,9 +92,14 @@ module RMExtensions
|
|
85
92
|
# clean up on dellocation
|
86
93
|
def dealloc
|
87
94
|
# p "dealloc #{self.inspect} for #{@desc}"
|
95
|
+
cleanup
|
96
|
+
super
|
97
|
+
end
|
98
|
+
|
99
|
+
def cleanup
|
88
100
|
unobserve_all
|
89
101
|
off_all
|
90
|
-
|
102
|
+
true
|
91
103
|
end
|
92
104
|
|
93
105
|
def observe(target, key_path, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rm-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Noon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Extensions and helpers for dealing with various areas of rubymotion
|
14
14
|
email:
|