larrymyers/backbone-koans — pull request #3 by gregmalcolm (2012-05-21 01:41:20+00:00)
Title: Fix browser bugs

Fixes for the following:

1) When opening the browser with specrunner.html via 'file:///' protocol the stack trace shows a file in "Expected 'undefined' to equal 'function'. -> koans/js/ext/jasmine.js:102" instead of the correct koan error. I think this is a side effect of moving koans/aboutEvents.js to js/koans/aboutEvents.js. Fixed by changing the regex that looks at the stack.

2) It's of course not advisable to actually try an run koans from specrunner.html. I get that now. The browsers give errors on the todo render method, and I noticed when running with answered koans that it all falls down halfway through the View koans. Which is probably not news. Any user who follows the instructions will be fine, but for those who don't, I've added a warning that will appear at the top of the window when running koans using the 'file' protocol. Much harder to ignore.

3) I've updated the README to be more insistant on using the http server approach to run koans, and also left a hint as to why this is.

I've tested these changes with a full set of answers in the test_fix_browser_bugs in my fork.