mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-15 10:37:57 +08:00
turns out Bacon.run is called for each spec, let's make sure we don't override the main_activity ivar with nil
This commit is contained in:
committed by
Watson
parent
d2491653e9
commit
7635cb53e8
@@ -511,7 +511,7 @@ module Bacon
|
||||
if defined?(NSObject)
|
||||
current_context.performSelector("run", withObject:nil, afterDelay:0)
|
||||
else
|
||||
@main_activity = arg
|
||||
@main_activity ||= arg
|
||||
current_context.run
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user