From a0ded8c3d0cb09dc852d0772243b0705b852a878 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Tue, 18 Sep 2012 15:01:28 -0700 Subject: [PATCH] Fix Spark in Firefox 3.6-4 --- packages/spark/spark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/spark/spark.js b/packages/spark/spark.js index 3a9d3b7cfcb..55d34e03af1 100644 --- a/packages/spark/spark.js +++ b/packages/spark/spark.js @@ -91,8 +91,9 @@ var notifyWatchers = function (start, end) { }; Spark._createId = function () { + // Chars can't include '-' to be safe inside HTML comments. var chars = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_"; var id = ""; for (var i = 0; i < 8; i++) id += chars.substr(Math.floor(Meteor.random() * 64), 1);