Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// DOVunsetConnection.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
  /**
   * Unset asset's direct verb param connection to specified indirect object.
   * @memberOf adventurejs.Asset
	 * @method adventurejs.Asset#DOVunsetConnection
   * @param {String} verb
   * @param {Object} asset
   */
  p.DOVunsetConnection = function Asset_DOVunsetConnection( verb, asset )
  {
    if( "string" === typeof asset) asset = this.game.getAsset(asset);
    if( !asset || !asset.id ) return false;
    if( !verb || !this.game.dictionary.verbs[verb] ) return false;

    this.game.dictionary.verbs[verb].unsetVerbSubscriptionConnection( this, asset );
  }
}());