Fix global leak of ret in JSONPath.normalize() #12

merged 1 commit into from Dec 11, 2012

3 participants


Fix global leak of ret in JSONPath.normalize().

While writing mocha tests around some use of JSONPath, it found a global declaration of ret in normalize() versus var. There appears to be no reason why ret would be a global in this context, and in other versions of the codebase--on google code--the value is just returned raw because there's no caching in place anyway.

@jonathana jonathana Update lib/jsonpath.js
Fix global leak of ret in jsonPath.normalize()

Like #11 +1

@s3u s3u merged commit d8a4b62 into s3u:master Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment