1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/resourcelocks/nullresourcelock.js
2017-01-25 01:14:35 -05:00

20 lines
No EOL
422 B
JavaScript

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;
});