Skip to content

Commit

Permalink
Fix Spark in Firefox 3.6-4
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Sep 18, 2012
1 parent 1cf759e commit a0ded8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/spark/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a0ded8c

Please sign in to comment.