Wachunga/Omega-Issue-Tracker — Issue #2: OmegaEvent has no method 'slice'
Author: russellporter
Created: 2011-11-13 01:55:10+00:00
State: open

Here's a crash I just encountered running the current omega code:

```
info - transport end
debug - cleared close timeout for client 776232242829913784
debug - discarding transport
debug - setting request GET /socket.io/1/xhr-polling/776232242829913784?t=1321083897421
debug - setting poll timeout
debug - clearing poll timeout
debug - xhr-polling writing 7:::1+0
debug - set close timeout for client 776232242829913784
warn - client not handshaken client should reconnect
info - transport end
debug - cleared close timeout for client 776232242829913784
debug - discarding transport
debug - setting request GET /socket.io/1/xhr-polling/17654711111631277475?t=1321083897432

/home/rporter/Omega-Issue-Tracker/server.js:44
socket.emit('history', history.slice(-HISTORY_ITEMS_TO_SHOW));
^
TypeError: Object # has no method 'slice'
at SocketNamespace. (/home/rporter/Omega-Issue-Tracker/server.js:44:33)
at SocketNamespace.$emit (events.js:64:17)
at connect (/home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/namespace.js:291:10)
at /home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/namespace.js:308:13
at SocketNamespace.authorize (/home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/namespace.js:252:5)
at SocketNamespace.handlePacket (/home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/namespace.js:302:14)
at Manager.handleClient (/home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/manager.js:634:30)
at Manager.handleHTTPRequest (/home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/manager.js:575:8)
at Manager.handleRequest (/home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/manager.js:537:12)
at Server. (/home/rporter/Omega-Issue-Tracker/node_modules/socket.io/lib/manager.js:96:10)

```