// doesContainAsset.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Check whether this asset contains the specified asset.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#doesContainAsset
* @param {String} id
* @returns {String}
*/
p.doesContainAsset = function Tangible_doesContainAsset(id) {
if (!id) return false;
for (var prop in this.aspects) {
var contents = this.aspects[prop].contents;
for (var i = 0; i < contents.length; i++) {
if (id === contents[i]) return true;
}
}
return false;
}; // doesContainAsset.js
})();