lowe/zxcvbn — pull request #12 by nmalkin (2012-08-01 00:54:58+00:00)
Title: Simplify demo page setup

This pull request makes two changes that make it easier to run the demo in the `test` directory:

1. Link directly to the zxcvbn-async.js file in the repo root.
This avoids the need to copy (or symlink) the file into the demo directory.
2. Attach the load hook (`zxcvbn_load_hook`) in test.coffee to the window object.
Otherwise, when CoffeeScript compiles the file, the function name will be locally scoped, and it will not get called.
(An alternate solution is to run CoffeeScript with the `--bare` flag, but since there's no documentation to that effect, this seems like the easier solution.)

Neither of these are bugs, but both make it a little bit easier to get the demo set up and working.