Skip to content

Commit

Permalink
Returning JS object on close event
Browse files Browse the repository at this point in the history
  • Loading branch information
fastman committed Sep 17, 2012
1 parent 484763e commit 5b670a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zookeeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ZooKeeper(config) {
self._native.emit = function(ev, a1, a2, a3) {
if(self.logger)
self.logger("Emitting '" + ev + "' with args: " + a1 + ", " + a2 + ", " + a3);
if(ev === 'connect') {
if(ev === 'connect' || ev === 'close') {
// the event is passing the native object. need to mangle to return the wrapper
a1 = self;
}
Expand Down

0 comments on commit 5b670a0

Please sign in to comment.