jedp/kpiggybank — pull request #5 by shane-tomlinson (2012-10-22 14:08:46+00:00)
Title: Only reverse the docs if there are docs.

I was having a problem when I started the server and then loaded the server page because I had no KPI data. the io.sockets.on was trying to get the data and then reverse it. Since there was no data, it was blowing up. BOOM