Removing current_screen which caused problems.

This commit is contained in:
Jamon Holmgren
2013-05-10 15:17:17 -07:00
parent b2e43674d4
commit 2c2136cad8
3 changed files with 2 additions and 14 deletions

View File

@@ -69,7 +69,6 @@ module ProMotion
else
self.parent_screen.send(:on_return)
end
ProMotion::Screen.current_screen = self.parent_screen
end
end

View File

@@ -105,13 +105,11 @@ module ProMotion
end
def view_will_appear(animated)
# ProMotion::Screen.current_screen = self
self.will_appear
end
def will_appear; end
def view_did_appear(animated)
# ProMotion::Screen.current_screen = self
self.on_appear
end
def on_appear; end
@@ -122,7 +120,6 @@ module ProMotion
def will_disappear; end
def view_did_disappear(animated)
# ProMotion::Screen.current_screen = self.parent_screen if self.parent_screen
self.on_disappear
end
def on_disappear; end
@@ -216,14 +213,6 @@ module ProMotion
@debug_mode = v
end
def current_screen=(s)
@current_screen = s
end
def current_screen
@current_screen
end
def title(t)
@title = t
end
@@ -239,4 +228,4 @@ module ProMotion
base.extend(ClassMethods)
end
end
end
end

View File

@@ -4,4 +4,4 @@ module ProMotion
# Just make sure to implement the Obj-C methods in cocoatouch/ViewController.rb.
include ProMotion::ScreenModule
end
end
end