Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// unsetVerbSubscription.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
/**
 * <strong>unsetVerbSubscription</strong> disables the use of the 
 * specified verb with this asset, if it has been previously set.
 * @memberOf adventurejs.Asset
 * @method adventurejs.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;
}
}());