WebsocketProvider - fixed incorrect variable name

This commit is contained in:
aaron 2015-01-16 16:03:13 -08:00
parent 507241f73c
commit e97478cc1e
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ WebSocketProvider.prototype.unload = function() {
this.ws.close();
};
Object.defineProperty(WebSocketProvider.prototype, "onmessage", {
set: function(provider) { this.onMessage(provider); }
set: function(handler) { this.onMessage(handler); }
});
if (typeof(module) !== "undefined")