motion-kit 0.10.6 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/motion-kit/layouts/base_layout.rb +4 -1
- data/lib/motion-kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c906092e2a2431bd9d2f116bce5248e790232dfb
|
4
|
+
data.tar.gz: 012fb50f2411ee1cb378ceb3025db7efc85a4293
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eeb2ab71597b890e4378cf69cdc5c98972ff7e673f024d8124913557f1c90dbc0ee61fb9391c391b066b7752908a47fde716abb4a1eea176c5c220afca357e7
|
7
|
+
data.tar.gz: 3fd417f6eaba8a5a2f1c5fa27b60d0dbcd21e3159da3f8304b29f9eee18d9f627979efa7420c83006ab2a70578713531e816e7907c9ba2b319058625657b7b17
|
data/README.md
CHANGED
@@ -308,6 +308,8 @@ end
|
|
308
308
|
```
|
309
309
|
|
310
310
|
This is especially useful with collection views, table views, and table cells.
|
311
|
+
Keep in mind that MotionKit will **not** retain a strong reference to your provided
|
312
|
+
root view, so retain one yourself to prevent it from being deallocated.
|
311
313
|
|
312
314
|
### How do styles get applied?
|
313
315
|
|
@@ -24,7 +24,10 @@ module MotionKit
|
|
24
24
|
@layout_delegate = nil
|
25
25
|
@layout_state = :initial
|
26
26
|
# You can set a root view by using .new(root: some_view)
|
27
|
-
|
27
|
+
# Explicit roots will not have a strong reference from
|
28
|
+
# MotionKit, so retain one yourself from your controller
|
29
|
+
# or other view to prevent deallocation.
|
30
|
+
@preset_root = WeakRef.new(args[:root])
|
28
31
|
end
|
29
32
|
|
30
33
|
def set_layout(layout)
|
data/lib/motion-kit/version.rb
CHANGED