motion/ui/ui_control_wrapper.rb in bubble-wrap-1.4.0 vs motion/ui/ui_control_wrapper.rb in bubble-wrap-1.5.0.rc1
- old
+ new
@@ -8,9 +8,10 @@
@callback[events] = []
removeTarget(nil, action: nil, forControlEvents: events)
end
@callback[events] << block
+ block.weak! if BubbleWrap.use_weak_callbacks?
addTarget(@callback[events].last, action:'call', forControlEvents: events)
end
end
end