flatiron/director — pull request #50 by benweatherman (2011-11-27 05:10:21+00:00)
Title: setRoute broken because of missing `this`

setRoute calls setHash, but setHash was making a comparison against `mode` instead of `this.mode`. I've attached corrected code and a test. The test may need some work as I didn't see other setRoute tests so I wasn't sure what the correct format should be (comparing location.hash or router.getRoute or perhaps some other awesome thing I'm not thinking of).