Gary Green
Gary Green
In which case it's very easy, the docs show exactly how to use the lightrouter. What part of the docs are you having trouble understanding? (Maybe needs improvement)
It's technically possible to test if a specific route matches like that, but this router does it generally like: ``` javascript var router = new LightRouter({ type: 'path', path: 'testing-xk500.jsptesting'...
If you wanted to test the routes manually you could do something like: ``` javascript var router = new LightRouter(); router.add(/^(.*)-xk([0-9]*).jsp(.*)/, function() { }); for (var i = 0; i...
Are you running this in a browser/node?
I suspect your using some other js that has prototyped arrays like `Array.prototype.someproperty = 'blah'` Can you try using only lightrouter in your app and see if it works?
If you clone this repository and open`tests/browser/index.html` in your browser, do all the tests pass? I still think it's some dodgy js or even maybe chrome extension that is prototyping...
Just open `tests/browser/index.html` in your Chrome browser locally. It should run the tests
Just pushed a new version, try 0.2.2 and let me know if it fixes your issue
Yeah I have pushed it, it's on tag 0.2.2 so should be able to pull it down. Master is showing as 2 commits behind, not sure why......
@kokujin just released new version, does this fix any issue you were having?