// hasAspectAt.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Determine whether asset has an aspect at specified preposition.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#hasAspectAt
* @param {String} aspect
* @return {Boolean}
*/
p.hasAspectAt = function Tangible_hasAspectAt(aspect) {
if (
!aspect ||
!this.aspects ||
!this.aspects[aspect] ||
!this.aspects[aspect].class
) {
return false;
}
return true;
};
})();