lib/flirt.rb in flirt-0.1.1 vs lib/flirt.rb in flirt-0.2.0

- old
+ new

@@ -21,11 +21,12 @@ end def subscribe(object, event_name, options = {}) check_subscription_arguments(event_name, object, options) - callback = Flirt::Callback.new object: object, - callback_name: options[:with] + callback = Flirt::Callback.new object: object, + callback_name: options[:with], + weakref: options[:weakref] add_callback(event_name, callback) end def unsubscribe(object, event_name, options = {})