seb-thomas
Hiya, not really an issue, but don't think anyone will look at the comments on a year old article! :) From my comment on ALA: " Thanks for the great article! My only problem is that it's not only obviously a good intro to testing, but also a good introduction to deferreds, RSVP and how to better structure your code. It's a bit of a jump from the procedural way (I would have written it) to the uncoupled way. <br> I've done my own non-backbone version and got it to a point where I understand all the parts except for what's going on <a href="https://github.com/rmurphey/testable-javascript/blob/refactored_with_tests/www/js/data.js#L10">here</a> <br> Anyone get why this is needed? I've put a break on it and it doesn't seem like the contents of the 'if' ever gets run. <br> Also, does anyone understand why <a href="https://github.com/rmurphey/testable-javascript/blob/refactored_with_tests/www/js/data.js#L16">'ajax' works but using 'get'</a> instead returns an empty results object? <pre> {"results":[]}</pre> <br> btw, anyone using input type 'search' instead of 'text' might find that 2 results are returned, the first being empty. In Chrome at least. Was driving me mad for a quite some time! " If anyone has any answers, I'd be pleased to hear em! ta