motion/sms/sms.rb in bubble-wrap-1.4.0 vs motion/sms/sms.rb in bubble-wrap-1.5.0.rc1
- old
+ new
@@ -20,9 +20,11 @@
# }
def compose(options={}, &callback)
@delegate = options[:delegate] || App.window.rootViewController
@callback = callback
+ @callback.weak! if @callback && BubbleWrap.use_weak_callbacks?
+
@message_controller = create_message_controller(options)
@message_is_animated = options[:animated] == false ? false : true
@delegate.presentModalViewController(@message_controller, animated: @message_is_animated)
end