lib/ProMotion/AppDelegate.rb in ProMotion-0.1.2 vs lib/ProMotion/AppDelegate.rb in ProMotion-0.2.0

- old
+ new

@@ -3,11 +3,11 @@ attr_accessor :window def application(application, didFinishLaunchingWithOptions:launchOptions) return true if RUBYMOTION_ENV == "test" - Console.log(" Your AppDelegate (usually in app_delegate.rb) needs an on_load(options) method.", withColor: Console::RED_COLOR) unless self.respond_to? :on_load + Console.log(" Your AppDelegate (usually in app_delegate.rb) needs an on_load(options) method.", withColor: Console::RED_COLOR) unless self.respond_to?(:on_load) on_load launchOptions open_home_screen if has_home_screen @@ -33,10 +33,10 @@ def open_screen(screen) home(screen) end def home(screen) - screen = screen.new if screen.respond_to? :new + screen = screen.new if screen.respond_to?(:new) @home_screen = screen end def fresh_start(new_screen) home(new_screen) \ No newline at end of file