update components

This commit is contained in:
Luke Pulverenti 2017-01-25 01:14:35 -05:00
parent 58cebe2486
commit 93ce8f975b
8 changed files with 232 additions and 82 deletions

View file

@ -0,0 +1,20 @@
define([], function () {
'use strict';
function ResourceLockInstance() {
}
ResourceLockInstance.prototype.acquire = function () {
this._isHeld = true;
};
ResourceLockInstance.prototype.isHeld = function () {
return this._isHeld === true;
};
ResourceLockInstance.prototype.release = function () {
this._isHeld = false;
};
return ResourceLockInstance;
});