mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-27 16:10:34 +08:00
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:
@@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user