From d05fd584802a0919372b1926eb30cc0475b02453 Mon Sep 17 00:00:00 2001 From: Ollie Ford Date: Mon, 3 Aug 2015 14:44:50 +0100 Subject: [PATCH] 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). --- lib/garageserver.io.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/garageserver.io.js b/lib/garageserver.io.js index b814807..3f8d1f3 100644 --- a/lib/garageserver.io.js +++ b/lib/garageserver.io.js @@ -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); -}; \ No newline at end of file +};