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
- MTlmZTZiMmYwMzEzZjI5Yjc0YzZjNzBiYTJlZDFkODg0MDcwZjBiMQ==
4
+ ZTZjZWZhYWM1YjljZDExYmMyYTE1ODg2YjJkZjRiYWQ3OTM3NjgxYQ==
5
5
  data.tar.gz: !binary |-
6
- NzE4NTg3ZmEwZWI0MmI4ODA5Y2U5MTVjODZjYjM3YzMyMmRkNjk4Nw==
6
+ NzM1MDY2NzU2NTU5MDY2YzZlMzI2YzhmZTBiNzRjNDA5ODM4MmZlMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODE3MjM1ZjU5Y2Y0NjI4MTQ5NjEyNTVjZmQ3ZjEwZjdhN2QxZjZhOTY4NWQw
10
- YTVhMGE3NzM4ZDc1ZmRjZmI1NGNiY2YwMTZiODk1MjgxZmJkYTNkNTdmNjRh
11
- YzcwYTIzNGRhN2E3OTAwZWMwOTc0NGIyYjNlYWZmZDFjYjZkYWY=
9
+ MjU2NDc0YjYzY2U5NWNlODliNWQ1MjM3OTJjYWMwZDdjYzI5NmNkNzBlYTlj
10
+ YmQxOGYwODFhNWNhMWNiOTAxZDg1YTEzMTg0YTNlODM1NDUwZDkwNjM2MDY5
11
+ NWViNWM4OWViOTJjOTBiY2ZhOGViOTJkODMzNGNkZjkyYWY0NzE=
12
12
  data.tar.gz: !binary |-
13
- ZTMxZWNiN2M5ZWRjOGE5NmRkNjYzZDMzNzFhYTkyZmZmYzE1NDgwN2QxZjc3
14
- ODk4MWFjNTgzNzMxYmVkMWQ0YjU1ZmU2MGZhZGI0YzNiMzc2OGE5Y2JlM2My
15
- NDI2N2E0MDU4MWRhNjgwYzU2N2Q3NzBkYTViM2U2NTMwZWQxMzI=
13
+ MjhlYzliNjc2ZGY2OTA1ZjM5NDBjZTRhZTk2ZmU1ZDc2MGNiZTEwY2U4NDJk
14
+ ODhhZGVhNjc1OTFjZDhiYzRkMGZiMzFlOTQ3YzkzZTdiNWUxNjMzM2Q4OWNk
15
+ NGM5ZTVhNzI4YjQwZDdhOWMyZTI3YjhlZDkwODdhOTIyOGI0OGQ=
@@ -29,15 +29,16 @@ module PrimeSlidingMenu
29
29
  end
30
30
 
31
31
  def menu_controller=(c)
32
- self.underLeftViewController = prepare_controller(c)
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
- controller = prepare_controller(c)
37
- if should_reinit_content?(controller)
38
- self.topViewController = controller
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 = [controller]
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.nil? ||
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
@@ -1,3 +1,3 @@
1
1
  module PrimeSlidingMenu
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  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.2
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-01-26 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods