Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// unsetVerbSubscription.js
(function () {
  /* global AdventureJS A */
  var p = AdventureJS.Assets.Asset.prototype;
  /**
   * <strong>unsetVerbSubscription</strong> disables the use of the
   * specified verb with this asset, if it has been previously set.
   * @memberOf AdventureJS.Assets.Asset
   * @method AdventureJS.Assets.Asset#unsetVerbSubscription
   * @param {String} object_of
   * @param {String} verb
   */
  p.unsetVerbSubscription = function Asset_unsetObjectOfVerb(object_of, verb) {
    if (!object_of) return;
    if (!verb) return;
    if (!this[object_of][verb]) return;
    this[object_of][verb].enabled = false;
  };
})();