prime_sliding_menu 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
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTZjZWZhYWM1YjljZDExYmMyYTE1ODg2YjJkZjRiYWQ3OTM3NjgxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzM1MDY2NzU2NTU5MDY2YzZlMzI2YzhmZTBiNzRjNDA5ODM4MmZlMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjU2NDc0YjYzY2U5NWNlODliNWQ1MjM3OTJjYWMwZDdjYzI5NmNkNzBlYTlj
|
10
|
+
YmQxOGYwODFhNWNhMWNiOTAxZDg1YTEzMTg0YTNlODM1NDUwZDkwNjM2MDY5
|
11
|
+
NWViNWM4OWViOTJjOTBiY2ZhOGViOTJkODMzNGNkZjkyYWY0NzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjhlYzliNjc2ZGY2OTA1ZjM5NDBjZTRhZTk2ZmU1ZDc2MGNiZTEwY2U4NDJk
|
14
|
+
ODhhZGVhNjc1OTFjZDhiYzRkMGZiMzFlOTQ3YzkzZTdiNWUxNjMzM2Q4OWNk
|
15
|
+
NGM5ZTVhNzI4YjQwZDdhOWMyZTI3YjhlZDkwODdhOTIyOGI0OGQ=
|
@@ -29,15 +29,16 @@ module PrimeSlidingMenu
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def menu_controller=(c)
|
32
|
-
|
32
|
+
@menu_controller_ref = prepare_controller(c)
|
33
|
+
self.underLeftViewController = @menu_controller_ref
|
33
34
|
end
|
34
35
|
|
35
36
|
def content_controller=(c)
|
36
|
-
|
37
|
-
if should_reinit_content?(
|
38
|
-
self.topViewController =
|
37
|
+
@content_controller_ref = prepare_controller(c)
|
38
|
+
if should_reinit_content?(@content_controller_ref)
|
39
|
+
self.topViewController = @content_controller_ref
|
39
40
|
else
|
40
|
-
content_controller.viewControllers = [
|
41
|
+
content_controller.viewControllers = [@content_controller_ref]
|
41
42
|
end
|
42
43
|
hide_sidebar
|
43
44
|
end
|
@@ -53,7 +54,7 @@ module PrimeSlidingMenu
|
|
53
54
|
private
|
54
55
|
|
55
56
|
def should_reinit_content?(new_controller)
|
56
|
-
content_controller.
|
57
|
+
content_controller.blank? ||
|
57
58
|
content_controller.is_a?(MotionPrime::TabBarController) ||
|
58
59
|
new_controller.is_a?(MotionPrime::TabBarController)
|
59
60
|
end
|
@@ -68,7 +69,7 @@ module PrimeSlidingMenu
|
|
68
69
|
controller.navigation_controller = content_controller if controller.respond_to?(:navigation_controller)
|
69
70
|
controller.send(:on_screen_load) if controller.respond_to?(:on_screen_load)
|
70
71
|
end
|
71
|
-
controller
|
72
|
+
controller.strong_ref
|
72
73
|
end
|
73
74
|
end
|
74
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prime_sliding_menu
|
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
|
- Iskander Haziev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|