lib/shoes/swt/common/remove.rb in shoes-swt-4.0.0.pre2 vs lib/shoes/swt/common/remove.rb in shoes-swt-4.0.0.pre3

- old
+ new

@@ -17,13 +17,12 @@ # Classes should override to dispose of any Swt resources they create def dispose end private + def remove_click_listeners - app.remove_listener ::Swt::SWT::MouseDown, @click_listener - app.remove_listener ::Swt::SWT::MouseUp, @click_listener - app.clickable_elements.delete self.dsl + app.click_listener.remove_listeners_for(dsl) end end end end end