lib/strategies/ui_label.rb in motion_bindable-0.2.4 vs lib/strategies/ui_label.rb in motion_bindable-0.2.5
- old
+ new
@@ -19,8 +19,13 @@
def observeValueForKeyPath(_, ofObject: _, change: _, context: _)
on_object_change
end
+ def unbind
+ object.removeObserver(self, forKeyPath: attr_name)
+ super
+ end
+
end
end