fix typo preventing event handler firing

`options.OnEvent` is documented as `options.onEvent`. Assuming consistency with other events, and `_options.onEvent` was intended, fixing typo here instead of in [docs](https://github.com/jbillmann/GarageServer.IO/blob/master/documentation/ServerAPI.md#server-options).
This commit is contained in:
Ollie Ford
2015-08-03 14:44:50 +01:00
parent f28dee8927
commit d05fd58480
+3 -3
View File
@@ -91,8 +91,8 @@ GarageServer.prototype.registerSocketEvents = function (options) {
if (options.logging) {
console.log('garageserver.io:: event ' + data);
}
if (options.OnEvent) {
options.OnEvent(data);
if (options.onEvent) {
options.onEvent(data);
}
});
});
@@ -188,4 +188,4 @@ GarageServer.prototype.clearRegions = function () {
exports.createGarageServer = function (io, options) {
return new GarageServer(io, options);
};
};