lib/routable/router.rb in routable-0.0.2 vs lib/routable/router.rb in routable-0.0.3

- old
+ new

@@ -177,11 +177,13 @@ end if open_options[:shared] shared_vc_cache[url] = controller # when controller.viewDidUnload called, remove from cache. - controller.add_block_method :new_dealloc do - shared_vc_cache.delete url + controller.class.class_eval do + define_method(:new_dealloc) do + shared_vc_cache.delete url + end end controller.instance_eval do def viewDidUnload new_dealloc super \ No newline at end of file