Merge pull request #32 from kumavis/patch-1

WebsocketProvider - fixed incorrect variable name
This commit is contained in:
Marek Kotewicz 2015-01-18 00:30:08 +01:00
commit b2d23b91e7

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")