Skip to content

Instantly share code, notes, and snippets.

@rich97
Created August 2, 2011 15:40
Show Gist options
  • Save rich97/1120465 to your computer and use it in GitHub Desktop.
Save rich97/1120465 to your computer and use it in GitHub Desktop.
// This is what v.next looks like: ["What is the nickname of Newcastle United?", Object { 7056f36f-43a1-4cca-8f6a-1766fc137cbd="The Birds", 61596ba8-ce83-47d2-a5d0-faed180e387a="The Seagulls", f8e95d46-4898-499d-b81c-2110a8583725="The Magpies"}]
var o = {};
console.log(v.next);
var next = v.next;
o.question = next[0];
o.answer = next[1];
/**
* next is undefined
* (?)(v=Object { score=1, lives=3})game.js (line 319)
* connect(a="update")socket.io.min.js (line 2)
* connect(a=Object { type="event", endpoint="/game", more...})socket.io.min.js (line 2)
* connect(a=Object { type="event", endpoint="/game", more...})socket.io.min.js (line 2)
* connect(a=Object { type="event", endpoint="/game", more...})socket.io.min.js (line 2)
* connect(a="5::/game:{"name":"updat...{"score":1,"lives":3}]}")socket.io.min.js (line 2)
* connect()socket.io.min.js (line 2)
* callPageHandler()spy.js (line 744)
* [Break On This Error] o.question = next[0];
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment