Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
//removePreScript.js
(function () {
  /* global adventurejs A */

  var p = adventurejs.Game.prototype;

  /**
   * Utility to allow authors to remove preScripts they have previously set.
   * @memberOf adventurejs.Game
   * @method adventurejs.Game#removePreScript
   * @kind function
   * @param {String} key The key of a previously defined prescript.
   */
  p.removePreScript = function Game_removePreScript(key) {
    if (this.pre_scripts[key]) delete this.pre_scripts[key];
  };
})();