Skip to content

Commit 596f518

Browse files
author
soletan
committed
fixing proper binding of post processor
fixing issue on "this" properly passed into parseX-methods processing response messages depending on message type
1 parent 62132ac commit 596f518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ p.parseMessage = function() {
314314
};
315315

316316
var fnc = this["parse" + String.fromCharCode( id )];
317-
return fnc instanceof Function ? fnc( msg ) : msg;
317+
return fnc instanceof Function ? fnc.call( this, msg ) : msg;
318318
}
319319

320320
throw new Error("Unrecognized message code " + id);

0 commit comments

Comments
 (0)