Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #93 from gillyb/master

Avoid global leak in xrds.js (fixes issue #92).
  • Loading branch information...
commit b49c6fdfb5e2679c370582ba28bc9493f3112647 2 parents 986bcec + d0d5b0c
Håvard Stranden authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/xrds.js
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.