obj1.prototype.f1= function(){
requester = zmq.socket('req');
requester.connect(config.handshakeSocket);
requester.on('message', function(data){
this.f2();
}
}
obj1.prototype.f2= function(){
}
obj1.prototype.f1= function(){
var _that = this;
requester = zmq.socket('req');
requester.connect(config.handshakeSocket);
requester.on('message', function(data){
// _that == obj1
_that.f2();
}
}
obj1.prototype.f2= function(){
}