// moveFrom.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* moveFrom is an alias to onRemoveThatFromThis
* but with asset and this reversed
* purely for syntactic convenience.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#moveFrom
* @param {Object} asset
* @returns {Boolean}
*/
p.moveFrom = function Tangible_moveFrom( asset )
{
if("string" === typeof asset) asset = this.game.getAsset(asset);
if(!asset) return false;
return asset.onRemoveThatFromThis( this );
}
}());