Timeline for Lorem ipsum chat bot
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 25, 2015 at 19:52 | vote | accept | Scott | ||
Aug 20, 2015 at 18:35 | comment | added | Scott | You are correct. The XHR function was copied from a previous program and because it "worked," I didn't notice. I should probably encapsulate my entire XHR/JSON loading into a single function (similar to this, but lighter) and call it from init. I'll add some error handling, too. This should solve all of the problems you cited. Re: the if/else block I chose this for speed and readability, but I could certainly refactor it into a loop. | |
Aug 20, 2015 at 18:11 | history | answered | SirPython | CC BY-SA 3.0 |