lib/teacup/layout.rb in teacup-3.0.0 vs lib/teacup/layout.rb in teacup-3.0.1
- old
+ new
@@ -148,10 +148,10 @@
# assign the 'teacup_next_responder', which is queried for a stylesheet if
# one is not explicitly assigned to the view. If the view already has a
# teacup_next_responder assigned, it's because another object is already
# responsible for managing the view's stylesheet.
if view.teacup_next_responder.nil? && view.is_a?(Layout)
- view.teacup_next_responder = WeakRef.new(self)
+ view.teacup_next_responder = self
end
if block_given?
superview_chain << view
begin