function throwWarning() {
    if (warningThrown > 100) {
      return;
    } else if (warningThrown === 100) {
      console.warn("Curtains: too many warnings thrown, stop logging.");
    } else {
      var args = Array.prototype.slice.call(arguments);
      console.warn.apply(console, args);
    }

    warningThrown++;
  }
Throw a console warning with the passed arguments
*