title: Opening link in javascript widget in new window
body: <p>I get the following error with this code in the update function below and I don't understand why.
  err: [RangeError: Maximum call stack size exceeded]</p>
  
  <p>Does it have something to do with using Meteor.setTimeout()?</p>
  
  <pre><code>if (Meteor.isServer) {
            Meteor.clearTimeout(league.nextPickTimeoutId);
  
            var pickTimeoutId = Meteor.setTimeout(function () {
              Meteor.call('pickPlayer', leagueId, findTopScoringPlayer(leagueId, nextTeam._id)._id);
            }, 30*1000);
  
            Leagues.update(leagueId, {
              $set: {
                nextPickTill: new Date().getTime() + (league.secondsPerPick * 1000),
                nextPickTimeoutId: pickTimeoutId
              }
            }, function (err) {
              if (err) console.log('err:', err);
            });
          }
  </code></pre>