Merge pull request #26 from OJFord/patch-1

fix typo preventing onEvent handler firing
This commit is contained in:
Jeremiah Billmann
2015-08-06 12:28:37 -05:00
+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);
};
};