joshbuddy / sherpa

Simple URI routing and generation in Javascript
MIT License
60 stars 5 forks source link

root is not defined #8

Closed tdfairbrother closed 13 years ago

tdfairbrother commented 13 years ago

I can't get this to work, I get the following error.

root is not defined root.Sherpa = Sherpa = (function() {

I tried taking out root.Sherpa so it just returns the Sherpa object but when I run the following var sherpa = new Sherpa.Router();

I get Sherpa is undefined.

I also needed to comment out the following as I'm not running Node

// util = require('util');

Thanks,

Tim

joshbuddy commented 13 years ago

Sorry about that. I was being a bad citizen and not leaving master in a clean state. I've moved the re-write to another branch, and reverted master. I'm in the process of re-writing this, but I think the code will ultimately live in http_router as both projects will share a large number of tests.

tdfairbrother commented 13 years ago

Ok, thanks.