Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for issue #52, clean up more in EventHandler#unregister

  • Loading branch information...
commit a39f18bd1882f7ed803f5f5228cfae958a335bb4 1 parent e237c78
Jonathan Simms slyphon authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/zk/event_handler.rb
1  lib/zk/event_handler.rb
View
@@ -144,6 +144,7 @@ def unregister(*args)
ary = @callbacks[subscription.path]
idx = ary.index(subscription) and ary.delete_at(idx)
+ @callbacks.delete(subscription.path) if ary.empty?
end
nil
Please sign in to comment.
Something went wrong with that request. Please try again.