lib/ios/sugarcube-animations/animation_chain.rb in sugarcube-2.8.2 vs lib/ios/sugarcube-animations/animation_chain.rb in sugarcube-2.9.1
- old
+ new
@@ -51,10 +51,10 @@
start
else
AnimationChain.stop_chain(self)
end
end
- }
+ }.weak!
options[:after] = @after_block
UIView.animate(options) do
Thread.current[:sugarcube_chaining] = true
block.call