motion/reactor/periodic_timer.rb in bubble-wrap-1.4.0 vs motion/reactor/periodic_timer.rb in bubble-wrap-1.5.0.rc1

- old
+ new

@@ -8,10 +8,11 @@ # Create a new timer that fires after a given number of seconds def initialize(interval, *args, &blk) callback = args.first.respond_to?(:call) ? args.first : blk raise ArgumentError, "No callback or block supplied to periodic timer" unless callback - + callback.weak! if callback && BubbleWrap.use_weak_callbacks? + options = args.last.is_a?(Hash) ? args.last : {} if options[:common_modes] NSLog "[DEPRECATED - Option :common_modes] a Run Loop Mode is no longer needed." end