Skip to content

Commit

Permalink
Add random seed to message name
Browse files Browse the repository at this point in the history
Two vow can exists in one project - this is just a fact. But it is possible to run both in single millisecond.
  • Loading branch information
theKashey committed Jun 22, 2015
1 parent f694755 commit e1f4543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vow.js
Expand Up @@ -60,7 +60,7 @@ var undef,
}

if(isPostMessageAsync) {
var msg = '__promise' + +new Date,
var msg = '__promise' + Math.random() + '_' +new Date,
onMessage = function(e) {
if(e.data === msg) {
e.stopPropagation && e.stopPropagation();
Expand Down

0 comments on commit e1f4543

Please sign in to comment.