websanova / js-url

url() - A simple, lightweight url parser for JavaScript
http://www.websanova.com
MIT License
1.93k stars 204 forks source link

Fix for 'jQuery' is undefined error when running js-url without jquery. #22

Closed bettiolo closed 11 years ago

bettiolo commented 11 years ago

Fix for 'jQuery' is undefined error when running js-url without jquery. …

Please consider only revision 8e0739c5c867ec65fd291acf9f5f849f983d746c

websanova commented 11 years ago

I would rather keep this simple, I've added the if (typeof jQuery !== 'undefined') check to the test file for the jQuery part. I think it's easier to do it that way, it's just a complimentary test to make sure the $.url is working anyway.