ruby_motion_query 1.3.3 → 1.3.4
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/motion/ext.rb +1 -1
- data/motion/ruby_motion_query/app.rb +2 -2
- data/motion/ruby_motion_query/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: 1b38cbb8732d87fe11fa1177e562b9a289deecd2
|
4
|
+
data.tar.gz: cecadfac15e816785d48ce4cbb23d9e930aec07a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cc1c6ebbd69132ddabb6a1ace110abca6c2e26911ee6e132f4478a117765d9316eea38cfe68d4f268a80947a65216929065a5a757f7513ccf5dab4430752cce
|
7
|
+
data.tar.gz: a1d71f312572308d267a4d70823f1a0ae6304015e7e199d74706ecb64c5d0941ab604f3adad2c2c82b7958868a24db826db2db420f6dd12f6e60e0459c7c3cad
|
data/motion/ext.rb
CHANGED
@@ -56,7 +56,7 @@ end
|
|
56
56
|
|
57
57
|
if RUBYMOTION_ENV == "development"
|
58
58
|
module Kernel
|
59
|
-
def rmq_live_stylesheets(interval = 0
|
59
|
+
def rmq_live_stylesheets(interval = 1.0, debug=false)
|
60
60
|
@live_reload_debug = debug
|
61
61
|
if interval == false
|
62
62
|
@live_reload_timer.invalidate if @live_reload_timer
|
@@ -128,9 +128,9 @@ module RubyMotionQuery
|
|
128
128
|
current_view_controller(root_view_controller.topViewController)
|
129
129
|
elsif root_view_controller.respond_to?(:frontViewController)
|
130
130
|
current_view_controller(root_view_controller.frontViewController)
|
131
|
-
elsif root_view_controller.respond_to?(:center)
|
131
|
+
elsif root_view_controller.respond_to?(:center) && (center = root_view_controller.center) && center.is_a?(UIViewController)
|
132
132
|
current_view_controller(root_view_controller.center)
|
133
|
-
elsif root_view_controller.childViewControllers.count > 0
|
133
|
+
elsif root_view_controller.respond_to?(:childViewControllers) && root_view_controller.childViewControllers.count > 0
|
134
134
|
current_view_controller(root_view_controller.childViewControllers.first)
|
135
135
|
else
|
136
136
|
root_view_controller
|