Permalink
Browse files

Merge pull request #93 from gillyb/master

Avoid global leak in xrds.js (fixes issue #92).
  • Loading branch information...
2 parents 986bcec + d0d5b0c commit b49c6fdfb5e2679c370582ba28bc9493f3112647 @havard committed Feb 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/xrds.js
View
@@ -29,7 +29,7 @@
exports.parse = function(data)
{
data = data.replace(/\r|\n/g, '');
- services = [];
+ var services = [];
var serviceMatches = data.match(/<Service\s*(priority="\d+")?\s*?>(.*?)<\/Service>/g);
if(!serviceMatches)

0 comments on commit b49c6fd

Please sign in to comment.